Safari browser ignores my cache cache

I cannot make the page always expire in Safari. Chrome, IE, and Firefox are good citizens, but Safari works great for them, ignoring the following ASP.NET code:

// Expire immediately Response.Expires = 0; Response.Cache.SetNoStore(); Response.AppendHeader("Pragma", "no-cache"); 

Any recommendations?

+5
safari pragma no-cache
source share
1 answer

Believe it or not, the way to make Safari always reload the page is to simply add this to the body tag:

 onunload="" 

I found a mention of this here: Is there a cross-browser onload event when I click the back button?

+5
source share

All Articles