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

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -