Knowledge Base Article

Contact Tech Support
excel@excelsystems.com
 (250) 655-1766
 [7:30 - 5:00 PST]
Your Meeting ID will be Provided by a Rep.
Tech Support
Tech Support Home
Software Updates
Knowledge Base
Code Samples
Documentation
Technical News
Software Requirements
Support Testimonials
Contact us to...
Create a Ticket
Request a Free Demo
Suggest a New Feature
Submit Feedback
Upload a Large File
Other Services
Software Training
Professional Services
Product: WebSmart IDE Created: 2010/01/27 Back to Search  
Number: 8176 Type: How to Rate This Article
 

Article Description

How can I modify my APACHE configuration to prevent the browser from caching a page?

Article Details

Question:
How can I prevent a user from hitting the back button and seeing a cached page?
 
Why would you want to do this?  In some cases users are worried that if they walk away from their desk for any length of time, they don't want someone to be able to hit page back and see information they are not entitled to.
 
Answer:
Part of the answer to this involves using SMURFs and setting the timeout to a reasonably short period, but also setting the Extend option set to *YES
 
The other part of this is to set up an Apache directive which tells the browser not to cache the page.  There are META tags which purport to do the same thing but they are not entirely reliable or cross browser compliant.  Another reason is Proxy server don't tend to look at the HTML on a page.
 
The reason the apache directive works is it sets the no-cache property in the HTTP Header instead of on the page itself like the META tags
 
The directive is:
 
#The php|cgi|pgm text below can be modified to include more or less page extensions.

ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
 
 

 

Rate This Page

Did this knowledge base article help you to achieve your goal?  Yes  No  Don't Know

Enter additional comments below.   If you want to hear back from us, include your contact information.

Email Address:
Comments: