You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nancy and Jeff Hibbs <je...@yahoo.com> on 2011/03/03 23:39:57 UTC
Struts 1, Glassfish browser caching
Using Struts 1, with glassfish. I want to force (or, I guess, suggest) to
the browser to cache all js and image files for at least 1 hour. we're using
jqry and some other .js files that repeatedly get sent to the browser for no
reason, along with the static image files. Most of the page is dynamic, so I
can't cache the whole page, just the static elements.
Can someone help me out?
I really appreciated it.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts 1, Glassfish browser caching
Posted by Dave Newton <da...@gmail.com>.
On Thu, Mar 3, 2011 at 5:39 PM, Nancy and Jeff Hibbs
<je...@yahoo.com> wrote:
> Using Struts 1, with glassfish. I want to force (or, I guess, suggest) to
> the browser to cache all js and image files for at least 1 hour. we're using
> jqry and some other .js files that repeatedly get sent to the browser for no
> reason, along with the static image files. Most of the page is dynamic, so I
> can't cache the whole page, just the static elements.
Are you specifically setting no-cache headers/pragmas? Not too many
browsers will re-request static resources these days. Are you getting
a not modified header back?
In any case, this doesn't have anything to do with Struts at all.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org