Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 21, 2012, 05:39 AM   #1
sk3pt1c
macrumors 6502a
 
Join Date: Nov 2005
Location: a simulacrum
Can i check if visitors are seeing older version of site?

We recently relaunched one of our sites where i work and we've had an issue of visitors accessing cached pages and not seeing the redesigned content.

Is there any way i can check if someone is visiting the cached page and tell them to reload?

Or force a reload on all pages or something like that?

It's crucial for this to happen cause we've had visitors send contact form data from older forms and we've had buggy data because we've updated for the new forms.

Thanks
__________________
Vi Veri Veniversum Vivus Vici
Macbook Pro 15" Retina
sk3pt1c is offline   0 Reply With Quote
Old Nov 21, 2012, 05:54 AM   #2
sk3pt1c
Thread Starter
macrumors 6502a
 
Join Date: Nov 2005
Location: a simulacrum
OK, done some digging, there is a cache meta tag but that doesn't get honoured by all browsers, as far as i've read.

the best option for usability's sake would be to detect if the page displayed is cached and popup a javascript alert or something, telling the user to reload the page.

or i could just add a refresh meta to all pages? that doesn't seem practical though. maybe i could limit it to run only once?
__________________
Vi Veri Veniversum Vivus Vici
Macbook Pro 15" Retina
sk3pt1c is offline   0 Reply With Quote
Old Nov 21, 2012, 10:27 AM   #3
SrWebDeveloper
macrumors 68000
 
SrWebDeveloper's Avatar
 
Join Date: Dec 2007
Location: Alexandria, VA, USA
 
see vendor information in user profile
Noting this does not guarantee success across all platforms, this sequence will handle most, set server side (not client side, that disrupts SEO):

Code:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
__________________
Jim Goldbloom
Sr. Web Developer, owner GoldTechPro, LLC
http://www.GoldTechPro.com
SrWebDeveloper is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 -5. The time now is 12:31 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC