Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-02-2011, 03:49 PM   PM User | #1
DarthDennis
New to the CF scene

 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
DarthDennis is an unknown quantity at this point
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?

Thanks!

I tried a search, but I don't think i'm entering the correct terms to find what I need.
DarthDennis is offline   Reply With Quote
Old 11-02-2011, 04:11 PM   PM User | #2
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
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: * {border:0;margin:0;padding:0;}
Seek and you shall find... basically:
validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting
Rowsdower! is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:02 PM.


Advertisement
Log in to turn off these ads.