toolman Posted January 27, 2015 Share Posted January 27, 2015 Hi there,I have updated a webpage and it appears that some users are still seeing the older version of the page. Is there a way I can force the user's version of the page to display the latest content on the page?I have see I can add some meta tags which control the cache, but my site relies quite heavily on cookies, so I guess clearing the cache would reset/have an effect on the cookies?Does anyone have any ideas on how I can make users always see the latest content?Thanks! Quote Link to comment Share on other sites More sharing options...
codefossa Posted January 30, 2015 Share Posted January 30, 2015 (edited) Add some PHP to the top of your page setting the header to not cache the page. <?php header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); ?> Or if you must use plain HTML. <meta http-equiv="expires" content="Sun, 01 Jan 2014 00:00:00 GMT"/> <meta http-equiv="pragma" content="no-cache" /> Edited January 30, 2015 by Xaotique 1 Quote Link to comment Share on other sites More sharing options...
NetKongen Posted February 3, 2015 Share Posted February 3, 2015 Your host might still to some extend cache your site. You could ask them to clear cache on your site and hosting platform. Quote Link to comment Share on other sites More sharing options...
jeffreyappel Posted March 16, 2015 Share Posted March 16, 2015 what you need to do is URL redirection that you would found in the hosting panel. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.