Re: [xwiki-users] Caching resources

2013-02-01 Thread David Delbecq
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"  
À: "XWiki Users"  
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"  
À: "XWiki Users"  
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


Re: [xwiki-users] Caching resources

2013-02-01 Thread David Delbecq

Http headers i gave comes form a 4.1.2 xwiki running on a plain (default 
configuration) jboss 7 

- Mail original -

De: "Sergiu Dumitriu"  
À: "XWiki Users"  
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


Re: [xwiki-users] Caching resources

2013-01-31 Thread Sergiu Dumitriu
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


[xwiki-users] Caching resources

2013-01-31 Thread David Delbecq
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? 

Thank you. 
--- 


GET /xwiki/bin/skin/resources/js/scriptaculous/effects.js HTTP/1.1 
Host: * 
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.12) Gecko/20100101 
Firefox/10.0.12 
Accept: */* 
Accept-Language: fr-be,en-us;q=0.7,en;q=0.3 
Accept-Encoding: gzip, deflate 
Connection: keep-alive 
Referer: ** 
Cookie: JSESSIONID=*.undefined; language=en; gh.i=%7B%7D; 
AJS.conglomerate.cookie=||upm.tab=install 
If-Modified-Since: Tue, 26 Jun 2012 10:06:58 GMT 
Authorization: Basic ZGVsYmQ6c2VpcmprMjA0NA== 


HTTP/1.1 200 OK 
Server: Apache-Coyote/1.1 
Pragma: No-cache 
Cache-Control: public 
Expires: Sat, 02 Mar 2013 17:22:25 GMT 
Last-Modified: Tue, 26 Jun 2012 10:06:58 GMT 
Content-Type: text/javascript;charset=UTF-8 
Content-Language: en 
Content-Length: 25003 
Date: Thu, 31 Jan 2013 17:22:25 GMT 



String.prototype.parseColor=function(){var a="#"; 
if(this.slice(0,4)=="rgb("){var c=this.slice(4,this.length-1).split(","); 
--- 


David Delbecq 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users