Preventing storing of Print2Flash documents in browser cache

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm
Preventing storing of Print2Flash documents in browser cache

Post by staff » Sat Dec 15, 2007 7:44 pm

This is a problem common to all types of documents, not only to Print2Flash documents. You can prevent caching in the browser by sending these HTTP headers when returning Print2Flash documents from your web server:

Pragma: no-cache
Cache-Control: no-cache,private,no-store,must-revalidate,max-stale=0,post-check=0,pre-check=0
Expires: Mon, 26 Jul 1997 05:00:00 GMT

This will make common browsers such as Internet Explorer or Firefox not to cache the documents. However, there are offline browsers that always cache downloaded files regardless of the headers. An example of such a browser is Ad Annihilator (http://adannihilator.com). To circumvent offline browsers caching, it is needed to implement a custom solution at which Print2Flash would ask permission from the web server to display the document at each loading. This requires custom development and knowledge of your site details. Contact us if you are interested in this kind of solution.

Post Reply