Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-02-2011, 03:49 PM #1
- Join Date
- Nov 2011
- Thanked 0 Times in 0 Posts
How to make sure visitor sees any updates since last visit
Very basic user with a basic website. When I make an edit to a page, upload it to the server, then go visit the site I still see the old cached version. How can I make sure users see latest updates with out the need to click refresh? Is there a section of code i just need to add to the page?
I tried a search, but I don't think i'm entering the correct terms to find what I need.
11-02-2011, 04:11 PM #2
- Join Date
- Oct 2008
- Some say it's everything.
- Thanked 397 Times in 390 Posts
You can use "expires" metatags (simply dropped into the document's <head> section) and/or "expires" and "cache-control" information in the HTTP headers (requiring .htaccess or server-side coding to pull off) to try to help this cache prevention along but remember: Users can still set their browser up to cache even when you don't want them to.
Check google for some specific guidance to implement the both or either...
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS:
Seek and you shall find... basically: validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting