Hi wicket devs,

in 1.5...

I would to remove AbstractResource#isCacheable() and give 
AbstractResource#getCacheDuration() the meaning 

  0  = no caching
 > 0 = duration in milliseconds for caching

This would give the developer more control as he could not only set the default 
cache duration via

  Application.get().getResourceSettings().getDefaultCacheDuration()

but also if resources in general should be cached at all (> 0) or never (=0)

Otherwise we would need another flag

  Application.get().getResourceSettings().isCachingEnabledByDefault()

to gain the same effect.

Do you agree with this change?

Reply via email to