always sets the expiry header
to 1 hour if the browser sends a request including an
IF-MODIFIED-SINCE-header. The relevant code is in WicketFilter (1.4.16)
347-350:
httpServletResponse.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
httpServletResponse.setDateHeader(Expires
some debugging, I found out that Wicket always sets the expiry header
to 1 hour if the browser sends a request including an
IF-MODIFIED-SINCE-header. The relevant code is in WicketFilter (1.4.16)
347-350:
httpServletResponse.setStatus(HttpServletResponse.SC_NOT_MODIFIED
always sets the expiry
header
to 1 hour if the browser sends a request including an
IF-MODIFIED-SINCE-header. The relevant code is in WicketFilter (1.4.16)
347-350:
httpServletResponse.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
httpServletResponse.setDateHeader(Expires
-SINCE-header. The relevant code is in WicketFilter (1.4.16)
347-350:
httpServletResponse.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
httpServletResponse.setDateHeader(Expires,
System.currentTimeMillis()
+ Duration.hours(1).getMilliseconds());
There already is an issue
and according to the parameters I
serve differents photos.
Once the photos are uploaded they never change, so I'd like the photos
be cached. I'm expecting to get a 304 not modified, but the
If-Modified-Since header is ignored because of the mount path is not
under '/resources'.
Is this clearer?
Should
by the web container
Take a look at http://code.google.com/p/wro4j/
On Sun, Oct 31, 2010 at 1:11 AM, Mauro Ciancio maurocian...@gmail.comwrote:
Hello everyone:
I've been trying to get properly working the caching in my site's
resources using the if-modified-since header. I've noticed that the
check
wanted. My resources gets mounted at
domain.com/photos/my/parameters and according to the parameters I
serve differents photos.
Once the photos are uploaded they never change, so I'd like the photos
be cached. I'm expecting to get a 304 not modified, but the
If-Modified-Since header is ignored because
Hello everyone:
I've been trying to get properly working the caching in my site's
resources using the if-modified-since header. I've noticed that the
check for the header is only done if the resource is mounted under the
'/resources' url (wicket filter @ line 1130, Wicket 1.4).
My resources