IIUC:

we append the file's modification date to the URL of the static
resource, and set the cache header to never expire. This way the
client will only retrieve the resource once. If the resource is
updated, then the modification date changes, and hence the download
URL. The browser *needs* to download the resource again, as it is a
new resource.

Martijn

On 9/18/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> So basically, we should record server startup time (date) and instead of doing
>
> response.setLastModifiedTime(Time.valueOf(-1));
>
> in Resource.onResourceRequested, line 130, whe should do
>
> response.setLastModifiedTime(Time.valueOf(serverStartupTime));
>
> Correct? Or would we need to do more?
>
> Eelco
>
>
> On 9/18/06, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> > Just so we're clear, i *never* suggested that javascript and css be reloaded
> > with each request.  i just suggested using the random query param as a
> > *possible* solution to get around these caching issues.
> >
> > the file last modified time is by far the most standard and "correct"
> > solution.
> >
> >
> > On 9/18/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > >
> >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > > I work on an application that undergoes weekly production releases, so
> > we've had to implement something very similar for both development and
> > production modes.  There's just too high of risk if the user gets an out of
> > date version of the javascript.
> >
> >
> > so why would you not want to cache resources from the wicket jar? they dont
> > change every week like your app. if you are using some other 3rd party
> > custom wicket component that are in their own jars why do you want to reload
> > those resources as well if they havent changed?
> >
> > >
> > >
> > >
> > >
> > > The question is, what is the cost of having these two modes seperate?
> > keeping everything uniform makes debugging and troubleshooting easier as
> > well as having only one codebase to worry about.  Why not *always* have this
> > behaviour?
> >
> >
> > because javascript libs can be huge and it will make your site slow if the
> > user has to pull them down on every request.
> >
> > -Igor
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> >  opinions on IT & business topics through brief surveys -- and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > _______________________________________________
> > Wicket-user mailing list
> >  Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys -- and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow
-- http://wicketframework.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to