WebApp Sec mailing list archives

Re: Code snippets to disable browser caching


From: "s89df987 s9f87s987f" <a059d8e0a9s8d0 () hotmail com>
Date: Mon, 08 May 2006 04:47:11 -0500

[code]
<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");
?>
[/code]

On 8 May 2006 04:43:31 -0000, smith.norton () gmail com <smith.norton () gmail com> wrote:
Can anyone suggest me how to write my HTML file so that it disables browser caching in the client side?


I would appreciate if anyone can give small code snippets to explain the same.


Thanks in advance.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-------------------------------------------------------------------------
Sponsored by: Watchfire

The Twelve Most Common Application-level Hack Attacks
Hackers continue to add billions to the cost of doing business online despite security executives' efforts to prevent malicious attacks. This whitepaper identifies the most common methods of attacks that we have seen, and outlines a guideline for developing secure web applications. Download this whitepaper today!

https://www.watchfire.com/securearea/whitepapers.aspx?id=701300000007t9r
--------------------------------------------------------------------------


Current thread: