Justin Phillips | 2 May 2012 20:27

[jetty-user] Expiry Headers

Hi all,
I'm trying to set the expires entity-header field in static content http headers. I see the cacheControl bit which can be set through webdefaults.xml. Is there a parameter for expiry as well? Thanks in advance.

Jan Bartel | 3 May 2012 13:48
Favicon
Gravatar

Re: [jetty-user] Expiry Headers

You can use the max-age on the cacheControl to control expiry.
Alternatively, you'd need to make a small filter to set the expires
header.

Jan

On 2 May 2012 20:27, Justin Phillips <justin.phillips <at> locusenergy.com> wrote:
> Hi all,
> I'm trying to set the expires entity-header field in static content http
> headers. I see the cacheControl bit which can be set through
> webdefaults.xml. Is there a parameter for expiry as well? Thanks in advance.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Justin Phillips | 3 May 2012 19:05

Re: [jetty-user] Expiry Headers

Yes, I've seen the documentation on max-age. I do want to set up the expiry header. I'm using scala/lift with sbt and I found this http://www.vineetmanohar.com/2010/10/java-expiry-date-header/
but it doesn't seem to be setting the headers correctly (I inspected in chrome and firebug)
Anyone have a filter hanging around for this purpose?
Thanks

On Thu, May 3, 2012 at 4:48 AM, Jan Bartel <janb <at> intalio.com> wrote:
You can use the max-age on the cacheControl to control expiry.
Alternatively, you'd need to make a small filter to set the expires
header.

Jan

On 2 May 2012 20:27, Justin Phillips <justin.phillips <at> locusenergy.com> wrote:
> Hi all,
> I'm trying to set the expires entity-header field in static content http
> headers. I see the cacheControl bit which can be set through
> webdefaults.xml. Is there a parameter for expiry as well? Thanks in advance.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Gmane