users@glassfish.java.net

Re: Disable cache for static files of a web application

From: <glassfish_at_javadesktop.org>
Date: Mon, 03 Aug 2009 08:48:16 PDT

Hi nedved,

> it says"Glassfish has admin console
> capabilities for configuring caching which should be
> evaluated before doing everything in code." .. do you
> have any idea where to set this in admin console?
>

Yes, you can configure that through Admin Console. The way to configure that depends whether you are using V2 or v3 due to grizzly integration.
Here is the steps in v2:
1. Click on Configuration -> HTTP Service tree node
2. On the right side, there are several tabs, select "HTTP File Cache"
3. Set the values you want and press Save.
(See attached screen image for v2)

If you are using v3, it is a little different, and you configure that on the protocol that your http listener is using.
Here is the steps in v3:
1. Expand the tree node 'Network Config"
2. Click on Network Listeners
3. On the right side is the table that shows you the listeners, protocols etc.
4. Click on the protocol of your network listener to edit this protocol
5. On the edit page, select "File Cache"
6. Set the values you want and press Save.
(See attached screen image for v3)

Hope this help.
Anissa
[Message sent by forum member 'anilam' (anilam)]

http://forums.java.net/jive/thread.jspa?messageID=358635