[
https://issues.apache.org/jira/browse/WICKET-7128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pedro Santos updated WICKET-7128:
---------------------------------
Description:
Context: currently Wicket uses an IResourceCachingStrategy to control how the
app resources will be cached in the browser by decorating the URL, and a
CachingResourceStreamLocator to control how the resource is cached in the
server. However, in the resource interface, it's not clear that the flag
IStaticCacheableResource.isCachingEnabled() is used only to inform how the
resource should be cached in the client.
Improvement:
- to deprecate IStaticCacheableResource.isCachingEnabled() in the current
versions and rename it to
IStaticCacheableResource.isClientCachingStrategyEnabled() in the next major one
Context: after WICKET-7024, CachingResourceStreamLocator#locate got the new
parameter "updateCache" to enable its working to skip the cache update.
Improvement:
* to move the new parameter "updateCache" to the #locate method in the
interface IResourceStreamLocator
was:
Context: currently Wicket uses an IResourceCachingStrategy to control how the
app resources will be cached in the browser by decorating the URL, and a
CachingResourceStreamLocator to control how the resource is cached in the
server. However, in the resource interface, it's not clear that the flag
IStaticCacheableResource.isCachingEnabled() is used only to inform how the
resource should be cached in the client.
Improvement:
- to deprecate IStaticCacheableResource.isCachingEnabled() in the current
versions and rename it to
IStaticCacheableResource.isClientCachingStrategyEnabled() in the next major one
> Improvement suggestions to IStaticCacheableResource and
> IResourceStreamLocator APIs
> -----------------------------------------------------------------------------------
>
> Key: WICKET-7128
> URL: https://issues.apache.org/jira/browse/WICKET-7128
> Project: Wicket
> Issue Type: Sub-task
> Components: wicket-core
> Affects Versions: 10.3.0
> Reporter: Pedro Santos
> Assignee: Pedro Santos
> Priority: Minor
>
> Context: currently Wicket uses an IResourceCachingStrategy to control how the
> app resources will be cached in the browser by decorating the URL, and a
> CachingResourceStreamLocator to control how the resource is cached in the
> server. However, in the resource interface, it's not clear that the flag
> IStaticCacheableResource.isCachingEnabled() is used only to inform how the
> resource should be cached in the client.
> Improvement:
> - to deprecate IStaticCacheableResource.isCachingEnabled() in the current
> versions and rename it to
> IStaticCacheableResource.isClientCachingStrategyEnabled() in the next major
> one
>
> Context: after WICKET-7024, CachingResourceStreamLocator#locate got the new
> parameter "updateCache" to enable its working to skip the cache update.
> Improvement:
> * to move the new parameter "updateCache" to the #locate method in the
> interface IResourceStreamLocator
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)