On Tue, 04 Jan 2005 21:13:28 +0100, Eelco Hillenius wrote:
>Using the temp dir actually is not a solution here, because:
>1. in order to really work, your web(app) server should have direct
>acces to it. As this is not the case when working with the temp dir (at
>least not without additional configuring), the requests will go through
>Servlets. And to have maximum gain, you want your server to regconize
>that the client is requesting a static resource, not a dynamic servlet.
>2. the start of the solution would be:
> a. to get rid of the constantly changing urls (though this might not
>be possible as the rendercount is important for our stale page tracking);
> b. set an expiration header (e.g. to epoch) for selected resources.
>
>I guess if 2. is solved, we won't be needing one, do we?
Eelco,
I don't get it... In point 1 you talk about the container not
having access to the temp dir... but of course it has it! As for the
Servlet recognizing which resources are static or not, that's something
we'd have to handle (and we have to do it anyway because of other bugs
I've filed that need to get fixed).
We want to know that if /WebApp/blah.jpg is requested, whether
it is a static image on disk or a dynamic image associated with a
Wicket component or a nonexistent resource. I had a rough idea of the
following:
1) Request comes in for some image
2) Check if file exists in specified path, if so, return the static
image
3) Check if file exists in "dynamic images lookup table", if so, return
the cached image (or generate it the first time)
4) The resource does not exist, return HTTP 404
The above is a oversimplification of the problem, but it's a
start. We'd need to handle this one way or another because currently
you cannot "View Image" on dynamically generated images from Wicket.
You'll get a broken link (check the "images" example webapp).
Gili
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop