Avatar of Gary
Gary
Flag for Ireland

asked on 

pushState weird issue

Using pushState I load new content on the page and slide it over the current content and change the url.
If I click the back button then everything happens in reverse and this is all fine.

But if I load the new content (page slide), refresh the page and then click back, the URL changes correctly but it is still showing the refreshed page html.
Looking in Firebug it shows the refreshed page html, looking at the source it shows the correct source of the page i.e. the previous page.
If I click back again and then forward, the page reloads correctly.
I'm confused!

(where are you leakim)
JavaScriptjQueryAJAX

Avatar of undefined
Last Comment
Gary

8/22/2022 - Mon