ok i updated the server with the latest examples for testing the images
It looks good now only 2 things remain:

http://www.web-caching.com/cgi-web-caching/cacheability.py?query=http%3A%2F%2Fwww.wicket-library.com%2Fwicket-examples%2Fhangman%2Fresource%2Fwicket.examples.hangman.Letter_l_enabled&descend=on

it is complaining about the time?

But also those cookies, It is saying that we shouldn't set the cookies for this but how do we do that? How can we control that?
for example images that are just in the webroot:
http://www.web-caching.com/cgi-web-caching/cacheability.py?query=http%3A%2F%2Fwww.wicket-library.com%2Fwicket-examples%2Fwicket-logo.png&descend=on


don't have cookies.. And those are just handled by a different servlet....

johan


Johan Compagner wrote:

guys,

this was not because of caching headers only but also the lastModifiedTime!
So i can't set all of them. The images do come from files so the modified time is not constantly
new, but for every image that is send to the client a specific time from the file set as last modified. (how it should be)
But somehow IE (firebird does it much better) doesn't check for the content length if that one is changed
or something like that


Because it could ask for Beer_de_DE.gif and then Beer_en_CA.gif but this could result in something strange
because the first gif could be newer then the last gif. So the last modified time is then > then the 'new' image..


I will make it so that when caching is not allowed i don't set anything (so also not the last modified time of the file)
But that example is ofcourse wrong.. And we should teach people to never return just images from files under
the same, not shared/static resource url. This is just bad practice.


johan


Jonathan Locke wrote:


i think caching headers should be off for resources by default.
then it can be turned on manually and we can turn it on by default for resources resolved by resourcereference...
this approach will be the least error prone since users won't be thinking about this issue.


-------- Original Message --------
Subject: [ wicket-Bugs-1178307 ] new caching header changes break pub example
Date: Thu, 07 Apr 2005 02:22:54 -0700
From: SourceForge.net <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]




Bugs item #1178307, was opened at 2005-04-07 07:09
Message generated for change (Comment added) made by joco01
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1178307&group_id=119783



Category: core Group: 1.0.0-rc2 Status: Open Resolution: None Priority: 5 Submitted By: Jonathan Locke (jonathanlocke) Assigned to: Johan Compagner (joco01) Summary: new caching header changes break pub example

Initial Comment:

to repro, just bring up the pub example and switch
locales.  the image won't change until you hit
F5/refresh in your browser.  i've checked in the
debugger and the resource is never requested, so the
problem must be with over-caching.

for resource references, which are stable urls and
include locale information, i think caching headers
should be set.  but for other more dynamic resources,
like in the pub example, it seems like caching should
be off by default...

the pub example should probably be using resource
references, but that's another issue...


----------------------------------------------------------------------

Comment By: Johan Compagner (joco01)


Date: 2005-04-07 09:22

Message:
Logged In: YES user_id=379231

i was already afraid this would happen.
We need some finer graid configuration for this. I will
check this out.

----------------------------------------------------------------------

You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1178307&group_id=119783






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to