.net - Force IE to get a page -
i've tried numerous ways ie8 reload page failed. ie keeps using it's internal cache without asking webserver it.
i'm sending following headers webserver:
response.add(new stringheader("expires", datetime.utcnow.addyears(-1).tostring("r"))); response.add(new stringheader("cache-control", "no-store, no-cache, must-revalidate, max-age=0")); response.add(new stringheader("pragma", "no-cache")); response.add(new stringheader("last-modified", datetime.utcnow.tostring("r")));
it's 1 of many combinations i've tried.
how make ie fetch page every time (without forcing users turn off caching inside ie)?
the proper way send these http headers in response:
pragma: no-cache expires: -1 cache-control: no-cache, no-store
using them makes work in ie without other modifications.
Comments
Post a Comment