0 Replies Latest reply on Nov 11, 2009 11:21 PM by Brad Douglas

    How to stop no-cache prama in response header for static con

    Brad Douglas Newbie

      Hi,

      We have some static .htm and .swf (shockwave flash) files under the protected area in our war, and have run into this known problem in IE accesing them via SSL with the no-cache pragma etc in the response header:
      http://support.microsoft.com/?id=316431

      I've tried to changing the tomcat config for DisableCacheControl as per this jboss wiki page:
      http://www.jboss.org/community/wiki/DisableCacheControl. For our dynamic pages it appears to be working, however for the static content we are still getting the no-cache pragma, and and Cahce-control header addition:


      HTTP/1.1 200 OK
      Server: Apache-Coyote/1.1å,ž
      Pragma: No-cacheå,ž
      Cache-Control: no-cacheå,ž
      Expires: Thu, 01 Jan 1970 10:00:00 ESTå,ž
      X-Powered-By: Servlet 2.4; JBoss-4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)/Tomcat-5.5å,ž
      Etag: W/"757-1252464412000"å,ž
      Last-Modified: Wed, 09 Sep 2009 02:46:52 GMTå,ž
      Content-Type: text/html;charset=ISO-8859-1å,ž
      Content-Length: 807å,ž
      Date: Thu, 12 Nov 2009 03:02:54 GMTå,ž


      Can anyone please help out with a way to remove these from the response helper? We're using jboss 4.2.0, seam 2.1 and myfaces - if that help narrow things down.

      Thanks in advance.