My resource is static file, so naturaly I want to use PackageResource. But I cannot override the configureResponse() or setHeaders() because PackageResource has private contructor. I cannot resue this class.
Thanks Jan "Eelco Hillenius" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You can override Resource.configureResponse or WebResource.setHeaders. > > Additionally, you could consider using Resource.setCacheable(false), > and then the IResourceStream's (or actually IModifiable's) > lastModifiedTime result is used. > > Eelco > > > On 6/19/06, jan_bar <[EMAIL PROTECTED]> wrote: > > Hi, > > > > how can I add response.setHeader("Pragma", "no-cache") to some shared > > resources? I have upload area/folder and when resource is uploaded I want to > > see the new resource instead of cached old resource. > > > > Thanks, Jan > > > > > > > > > > > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
