WebApp Sec mailing list archives
Re: Code snippets to disable browser caching
From: "Dave Ferguson" <gmdavef () gmail com>
Date: Mon, 8 May 2006 10:46:12 -0500
If you're generating the page from Java/JSP, add the following code. <% response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", -1); %> The meta tag in the html source is not necessarily going to work. IE5 was notoriously bad about caching pages. I think IE6 is less aggressive about it. -Dave 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. ------------------------------------------------------------------------- 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 --------------------------------------------------------------------------
------------------------------------------------------------------------- Sponsored by: Watchfire Methodologies & Tools for Web Application Security Assessment With the rapid rise in the number and types of security threats, web application security assessments should be considered a crucial phase in the development of any web application. What methodology should be followed? What tools can accelerate the assessment process? Download this whitepaper today! https://www.watchfire.com/securearea/whitepapers.aspx?id=701300000007t9h --------------------------------------------------------------------------
Current thread:
- Code snippets to disable browser caching smith . norton (May 08)
- Re: Code snippets to disable browser caching Dave Ferguson (May 08)
- <Possible follow-ups>
- Re: Code snippets to disable browser caching s89df987 s9f87s987f (May 08)
- Re: Code snippets to disable browser caching s89df987 s9f87s987f (May 08)
- Re: Code snippets to disable browser caching Jean-Jacques Halans (May 08)
- Re: Code snippets to disable browser caching Peter Conrad (May 09)
- Re: Code snippets to disable browser caching Tomi Tuominen (May 08)
- Re: Code snippets to disable browser caching Jean-Jacques Halans (May 08)
- RE: Code snippets to disable browser caching Martin O'Neal (May 09)