users@glassfish.java.net

Re: expire-headers ?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 09 Apr 2009 13:24:03 -0400

Felipe Gaúcho wrote:
> in domain.xml there is this:
>
> <http-file-cache file-caching-enabled="true"
> file-transmission-enabled="false" globally-enabled="true"
> hash-init-size="0" max-age-in-seconds="3000000000"
> max-files-count="1024" medium-file-size-limit-in-bytes="537600"
> medium-file-space-in-bytes="10485760"
> small-file-size-limit-in-bytes="2048"
> small-file-space-in-bytes="1048576"/>
>

> may I change its values and set my headers here ?

No this will not do what you are looking for. Filter (or Valve) is the
best way:

http://weblogs.java.net/blog/jfarcand/archive/2006/09/extending_glass.html

A+

-- Jeanfrancois

>
> 2009/4/6 Felipe Gaúcho <fgaucho_at_gmail.com>:
>> should I use a filter to apply expire-header in my web-application ?
>> or Glassfish has it configurable somewhere in the admin console.. (or
>> other place?)
>>
>> * I know this blog:
>> http://blogs.sun.com/cwebster/entry/caching_static_resources_in_glassfish
>>
>> but it seems to much repetitive effort for all applications :)
>>
>> --
>>
>> Please help to test this application:
>> http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces
>>
>
>
>