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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. 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.