Chrome Safari ignores no-store cache-control directive -


i have page checkbox , link page a.

i click on checkbox, click on link, go page a, click browser button, come back

i still see checkbox checked, it's not clearing up.

i have used proper cache-control headers below.

cache-control: no-store, no-cache, must-revalidate pragma: no-store, no-cache expires: 0 

also, tried this:

document.body.onunload = function(){};     document.body.onpageshow = function(evt) {         if (evt.persisted) {         document.body.style.display = "none";         location.reload();         }     }; 

nothing works in chrome , safari (desktop)

works on ie, firefox, mobile chrome , safari.

please help.

this seems same problem why checkbox stay checked when reloading page?

what worked me add autocomplete="off" form element on page.


Comments

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -