Is there a way to make Internet Explorer not cache a particular website?
Solution 1
Have you checked that you've enabled "reload on every visit" within IE settings?
Internet Options -> General -> Browsing History -> Settings
Check: Everytime I visit the webpage
Solution 2
Set the following HTTP headers:
Cache-Control: no-cache
Pragma: no-cache
The first one is for HTTP 1.1, the second one for older clients.
Solution 3
If you are using asp or aspx try these
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>
If another place this in the header
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
Corrine
Updated on August 25, 2022Comments
-
Corrine over 1 year
I am creating a webpage and whenever I refresh or move from page to page, it keeps on just reloading the cache values. But I don't want it to do that because I am working with dynamic data (from the database) so I want it to reload values from the database each time it refreshes, or whenever any page processing is done. And I don't mean just clearing the browser cache. I don't want my end-users to have to go to Tools each time they use my application.
-
Corrine almost 15 yearsI've already done this but it doesn't seem to work. It still loads data from the cache.
-
phihag almost 15 years@Corrine It's unlikely that IE has such a noticeable bug that has gone unnoticed so far. Are you sure you are sending the right headers? Please post a sample request and answer. Does the same behavior occur on a blank page without your code on it? On stackoverflow.com? If it does not and stackoverflow(or a demonstration page) works, just compare your headers and the ones that work.
-
Jelle over 11 yearsAlthough I feel sorry you have this problem, this is not really an answer to the question.