Hi Thomas,

it depends on your deployment mode:

 if (application.usesDevelopmentConfig())
{
        // development mode:
        // use last-modified timestamp of packaged resource for resource caching
        // cache the version information for the lifetime of the current http 
request
        resourceVersion = new RequestCycleCachedResourceVersion(
                new LastModifiedResourceVersion());
}
else
{
        // deployment mode:
        // use message digest over resource content for resource caching
        // cache the version information for the lifetime of the application
        resourceVersion = new CachingResourceVersion(new 
MessageDigestResourceVersion());
}

best,
Michael


Am 17.06.2013 um 15:21 schrieb Thomas Heigl <[email protected]>:

> Hi all,
> 
> I was wondering if Wicket has a built-in mechanism for caching the
> generated byte[] of package resources. I use concatenated resource bundles
> that are compressed using the YUI CSS/JS compressors.
> 
> Using the default settings, compression is performed for every request that
> does not have it in the client cache. Since this compression is a very
> complex operation I'd like to perform it only once.
> 
> Cheers,
> 
> Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to