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
 
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

Similar Threads
thread Thread Starter Forum Replies Last Post
Where can I download an older version of iMovie ABigPurpleGoose Mac Applications and Mac App Store 9 Jul 10, 2014 04:41 PM
Websites think I have older version of Safari? mrcap Mac Applications and Mac App Store 7 Feb 20, 2014 01:37 PM
Dual Booting with an older OS X version mklnk OS X 10.8 Mountain Lion 6 Oct 11, 2013 11:08 AM
iPhone: Install older version of Springtomize2? siorai Jailbreaks and iOS Hacks 2 Aug 17, 2012 08:18 AM

Forum Jump

All times are GMT -5. The time now is 12:34 PM.

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

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