I am pretty sure it's not jboss that is adding this header. First, i saw no configuration option related to this in jboss. Second, querying another non-wiki page (on another webapp thus) cause this output without no-cache
HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 ETag: W/"2432-1331331242000" Date: Fri, 01 Feb 2013 15:15:42 GMT I also tried to access static ressources inside the xwiki but then i get a no-cache: GET /xwiki/resources/js/scriptaculous/scriptaculous.js HTTP/1.1 HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 UTC ETag: W/"1016-1340705218000" Date: Fri, 01 Feb 2013 15:20:22 GMT ----- Mail original ----- De: "David Delbecq" <david.delb...@meteo.be> À: "XWiki Users" <users@xwiki.org> Envoyé: Vendredi 1 Février 2013 15:49:06 Objet: Re: [xwiki-users] Caching resources Http headers i gave comes form a 4.1.2 xwiki running on a plain (default configuration) jboss 7 ----- Mail original ----- De: "Sergiu Dumitriu" <ser...@xwiki.com> À: "XWiki Users" <users@xwiki.org> Envoyé: Jeudi 31 Janvier 2013 18:53:32 Objet: Re: [xwiki-users] Caching resources On 01/31/2013 12:31 PM, David Delbecq wrote: > Hello, > > i would like to active cachin on /xwiki/bin/skin/resources/* as, obviously, > skin doesn't change often :) > As you can see, by default, xwiki forbid caching... What do i need to change > for this caching? > Nope, that's not the default behavior. XWiki does rely on caching, and if you go to http://playground.xwiki.org/xwiki/bin/skin/resources/js/scriptaculous/effects.js you'll see that the resource is cached. > > HTTP/1.1 200 OK > Server: Apache-Coyote/1.1 > Pragma: No-cache ^ These don't come from XWiki, I guess that Tomcat's configuration is the one that adds the Pragma: No-cache header. > Cache-Control: public > Expires: Sat, 02 Mar 2013 17:22:25 GMT > Last-Modified: Tue, 26 Jun 2012 10:06:58 GMT ^ These come from XWiki, and they do enable caching. > Content-Type: text/javascript;charset=UTF-8 > Content-Language: en > Content-Length: 25003 > Date: Thu, 31 Jan 2013 17:22:25 GMT Hm, except maybe if you're using a very old version of XWiki. What version are you currently using? -- Sergiu Dumitriu http://purl.org/net/sergiu _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users