Enabling client side caching

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Enabling client side caching

Mats Eklund-2
Hi,

I'd like to have some static resources (css, js etc) served to the client with
http headers telling the client to cache those resources (max-age, expires
etc). I didn't see how this could be done from within the orbeon framework, but
I found this page which provides a servlet filter that can be configured to add
arbitrary http headers to the response:

http://onjava.com/pub/a/onjava/2004/03/03/filters.html?page=2

For some reason I don't get it to work; the response don't get the headers I
configure for the filter. I was thinking whether there is something with
orbeon's servlet that prevents the use of filters? Does anyone know how to do
this?

Thanks,
Mats


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Enabling client side caching

Mats Eklund-2
For those asking the same question, this solution worked excellent:

http://www.xucia.com/page/Resource_Accelerate?mode=html&noscript=true

Mats


From: "[hidden email]" <[hidden email]>
To: [hidden email]
Sent: Friday, July 17, 2009 4:20:07 PM
Subject: [ops-users] Enabling client side caching

Hi,

I'd like to have some static resources (css, js etc) served to the client with
http headers telling the client to cache those resources (max-age, expires
etc). I didn't see how this could be done from within the orbeon framework, but
I found this page which provides a servlet filter that can be configured to add
arbitrary http headers to the response:

http://onjava.com/pub/a/onjava/2004/03/03/filters.html?page=2

For some reason I don't get it to work; the response don't get the headers I
configure for the filter. I was thinking whether there is something with
orbeon's servlet that prevents the use of filters? Does anyone know how to do
this?

Thanks,
Mats



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Enabling client side caching

Erik Bruchez-3
We have Apache settings here. Better to use them with versioned
resources even, so you can enable aggressive caching.

http://www.orbeon.com/ops/doc/reference-xforms-configuration#apache

-Erik

On Thu, Jul 23, 2009 at 11:04 AM, Mats Eklund<[hidden email]> wrote:

> For those asking the same question, this solution worked excellent:
>
> http://www.xucia.com/page/Resource_Accelerate?mode=html&noscript=true
>
> Mats
>
> ________________________________
> From: "[hidden email]" <[hidden email]>
> To: [hidden email]
> Sent: Friday, July 17, 2009 4:20:07 PM
> Subject: [ops-users] Enabling client side caching
>
> Hi,
>
> I'd like to have some static resources (css, js etc) served to the client
> with
> http headers telling the client to cache those resources (max-age, expires
> etc). I didn't see how this could be done from within the orbeon framework,
> but
> I found this page which provides a servlet filter that can be configured to
> add
> arbitrary http headers to the response:
>
> http://onjava.com/pub/a/onjava/2004/03/03/filters.html?page=2
>
> For some reason I don't get it to work; the response don't get the headers I
> configure for the filter. I was thinking whether there is something with
> orbeon's servlet that prevents the use of filters? Does anyone know how to
> do
> this?
>
> Thanks,
> Mats
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws