Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Every time vs. Automatically
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00855099
Message ID:
00855248
Views:
13
>Does anyone know a RELIABLE way to ensure that users are getting the latest version of web pages. I have found that the only full-proof way is to set the IE content settings to get pages EVERY TIME.
>
>I am not clear that the META PRAGMA tag will do this. And, if so, does that tag have the negative consequence that my .js and/or .gif files will be retrieved every request as well?
>
>Thanks for the help.
>
>Dave

You can try use the Response.expires to 0, and you can add the Meta for refreshing etc, but there is never a way to ensure that the webpage is going to be gotten new everytime. Even, if you change the page on the web browser can still be configured to cache, and only get the new page whenever the client wants. One trick, I've used but haven't in 2 or 3 yrs, was simple generating a link from which the page was going from, and adding a hash to the end, in the query string. That way the web browser will at least think it is a different page everytime, and I had good success with that. Depending on how the user configures their browser, it may or may not get gifs, and js everytime. A browser can request the file from the server, and it will get a 304, if the file is the same and not download. Using and Response.Expires = 0 or a Meta pragma will usually cause the files to sent again.

You have to understand that the client has the ultimate choice, so there is no sure way, for EVERY TIME to get a new page. You best bet, is to use Response.expires = 0, and use Meta data to expire the page everytime, and that will work for you about 95% of the time.

Morgan
Previous
Reply
Map
View

Click here to load this message in the networking platform