Jump to content

no cache needed!!!


Recommended Posts

well the reason i was wondering if this could be done is because there are a lot of times that our server doesn't always load the latest and greatest updated code. So if you are coding and uploading a lot and not paying attention you forget to do a hard refresh at times. Just wondering

Link to comment
https://forums.phpfreaks.com/topic/104752-no-cache-needed/#findComment-536230
Share on other sites

well the reason i was wondering if this could be done is because there are a lot of times that our server doesn't always load the latest and greatest updated code. So if you are coding and uploading a lot and not paying attention you forget to do a hard refresh at times. Just wondering

 

When I want the latest version page to display rather than a cached version of the page, I do this....

 

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

Link to comment
https://forums.phpfreaks.com/topic/104752-no-cache-needed/#findComment-536241
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.