[openstreetmap/openstreetmap-website] Local site navigation (#2973)

Andy Allan notifications at github.com
Sun Nov 22 11:30:13 UTC 2020


> javascript rather than leveraging the browser history as we do now?

The problem is that we don't cache the results in the browser history at all, as @lectrician1 demonstrates (and as I found recently too). When you hit the back button, it makes a second overpass request.

Personally I think the solution is to reduce the javascript in the first place, and use more server-side stuff. I think the results caching would work better if the call to overpass was moved server-side, and the browser is just requesting page fragments from rails, rather than talking to overpass directly. That way, the html is all cached normally in the browser, since it's not dependent on any javascript re-running after hitting the back button.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2973#issuecomment-731733501
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201122/1465ab5d/attachment.htm>


More information about the rails-dev mailing list