pendragonf Posted November 19, 2008 Share Posted November 19, 2008 What can I put with the current code to make it drop any cache about the target location and reload it fresh? <fieldset> <a href="http://www.example.com:7000">For File Access Click Here(Web Hard) Quote Link to comment https://forums.phpfreaks.com/topic/133368-reload-link-fresh/ Share on other sites More sharing options...
flyhoney Posted November 19, 2008 Share Posted November 19, 2008 You could try adding a random query string, but I'm not sure that works for whole web pages. It's usually only used to force reload of css and images. <fieldset> <a href="http://www.example.com:7000/?<?php echo substr(microtime(true), 0, ?>">For File Access Click Here(Web Hard) Quote Link to comment https://forums.phpfreaks.com/topic/133368-reload-link-fresh/#findComment-693654 Share on other sites More sharing options...
JonnoTheDev Posted November 19, 2008 Share Posted November 19, 2008 Nothing. Use headers in the target location: header('Last-Modified: ' . date('r')); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', FALSE); header('Pragma: no-cache'); Quote Link to comment https://forums.phpfreaks.com/topic/133368-reload-link-fresh/#findComment-693683 Share on other sites More sharing options...
pendragonf Posted November 19, 2008 Author Share Posted November 19, 2008 I don't have access to target location is the problem other wise i would do that. Any other suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/133368-reload-link-fresh/#findComment-693688 Share on other sites More sharing options...
pendragonf Posted November 19, 2008 Author Share Posted November 19, 2008 Anyone give me a hand?? Really need an answer to this if there is one. Quote Link to comment https://forums.phpfreaks.com/topic/133368-reload-link-fresh/#findComment-693761 Share on other sites More sharing options...
premiso Posted November 19, 2008 Share Posted November 19, 2008 If you do not have access to the target location I do not think this is possible. I believe it is up to that location to determine whether to display a cached version or not. I could be wrong, but I think that is how it works. Quote Link to comment https://forums.phpfreaks.com/topic/133368-reload-link-fresh/#findComment-693767 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.