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! Link to comment https://forums.phpfreaks.com/topic/294258-force-users-to-see-latest-content-of-page/ Share on other sites More sharing options...
codefossa Posted January 30, 2015 Share Posted January 30, 2015 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" /> Link to comment https://forums.phpfreaks.com/topic/294258-force-users-to-see-latest-content-of-page/#findComment-1504351 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. Link to comment https://forums.phpfreaks.com/topic/294258-force-users-to-see-latest-content-of-page/#findComment-1504723 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. Link to comment https://forums.phpfreaks.com/topic/294258-force-users-to-see-latest-content-of-page/#findComment-1508202 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.