View Full Version : Issue with Cache...
Lisa217
03-25-2012, 02:10 PM
I have a website that I run for business through BlueHost, but the problem is - whenever I update it, no one can see the updates I made, unless they hit the refresh button on the browser. That is all well and good for me, I don't mind hitting refresh, but I cannot very well go around telling every customer that will go to our site to hit refresh. This is expecially a drawback for the calendar page, where customers are not seeing updated events. What can I do to make the pages automatically update, without people having to hit refresh? Thank you in advance for your help.
Bob Barr
03-25-2012, 02:52 PM
I seem to recall that there's a .htaccess file setting or an HTTP meta tag to disable browser caching for a specific page. (Sorry, I don't recall the details.)
Lisa217
03-25-2012, 03:08 PM
Hi Bob - thanks for your reply - I'm a very amateur web designer - I don't understand code, so if anyone has an answer for me, if you can please explain in lamen's terms, that would really help. Thank you so much
I seem to recall that there's a .htaccess file setting or an HTTP meta tag to disable browser caching for a specific page. (Sorry, I don't recall the details.)
Bob Barr
03-25-2012, 04:40 PM
I found this code at this site: http://www.webmasterworld.com/apache/3540207.htm
In .htaccess:
Header set Cache-Control: "no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0"
Putting that line of code into the .htaccess file in your site's top-level directory will prevent caching of all pages on your site. (If you don't have a .htaccess file in your site's directory, you can copy this line into a new one using the File Manager "Edit Code" function.)
I'll see if I can find some way to disable caching for a specific page.
<added>
I found an article at http://www.htmlgoodies.com/beyond/reference/article.php/3472881/So-You-Dont-Want-To-Cache-Huh.htm that provides a way to disable caching for a specific page by including some HTML code in the head portion of the page. It's a fairly long article but should be pretty easy to follow.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.