doubledee Posted February 22, 2012 Share Posted February 22, 2012 When I hit the back button in my browser I get this... Document Expired This document is no longer available. The requested document is not available in Firefox's cache.As a security precaution, Firefox does not automatically re-request sensitive documents.Click Try Again to re-request the document from the website. What is causing that?! Debbie Link to comment https://forums.phpfreaks.com/topic/257565-document-expired/ Share on other sites More sharing options...
darkfreaks Posted February 22, 2012 Share Posted February 22, 2012 this is a problem in the Beta versions of firefox with the Cache. you could add Cache-Control: max-age=600 this sets it so the cache doesn't expire for at least 10 minutes. Link to comment https://forums.phpfreaks.com/topic/257565-document-expired/#findComment-1320161 Share on other sites More sharing options...
doubledee Posted February 22, 2012 Author Share Posted February 22, 2012 this is a problem in the Beta versions of firefox with the Cache. I'm running FF 10.0.2 That isn't a "Beta"?! you could add Cache-Control: max-age=600 this sets it so the cache doesn't expire for at least 10 minutes. Are there any downsides to that (e.g. security)?? Debbie Link to comment https://forums.phpfreaks.com/topic/257565-document-expired/#findComment-1320174 Share on other sites More sharing options...
darkfreaks Posted February 22, 2012 Share Posted February 22, 2012 shared cache can be a Security risk Yes. that is why firefox by default has it's security settings to expire after a certain amount of time. this can also be done server side as well in PHP. what kind of documents is the code getting IE images/files if your getting a file or image inside a folder make sure the user has permission to 777 or 755. chmod wise. Link to comment https://forums.phpfreaks.com/topic/257565-document-expired/#findComment-1320213 Share on other sites More sharing options...
darkfreaks Posted February 22, 2012 Share Posted February 22, 2012 http://devgrow.com/simple-cache-class/ here is a cache class that sets the file permissions and allows you to start and stop the cache delimiter. Link to comment https://forums.phpfreaks.com/topic/257565-document-expired/#findComment-1320236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.