Interface CacheAwareAbsolutePortalURLBuilder<T>
- All Known Subinterfaces:
BundleScriptAbsolutePortalURLBuilder
,BundleStylesheetAbsolutePortalURLBuilder
public interface CacheAwareAbsolutePortalURLBuilder<T>
A URL builder that can control caching of underlying resource using a URL
parameter (e.g. "t" or "mac") to invalidate browser caches.
By default, cacheable resources use the CacheAwareAbsolutePortalURLBuilder.CachePolicy.UNTIL_CHANGED
policy unless noted otherwise in the documentation.
The AbsolutePortalURLBuilder
framework
guarantees that the returned URLs will trigger a browser cache invalidation
when needed. This may be implemented by looking at the contents or metadata
of files in the server or using other similar techniques.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncache
(CacheAwareAbsolutePortalURLBuilder.CachePolicy cachePolicy) Control the cache policy of this URL builder.
-
Method Details
-
cache
Control the cache policy of this URL builder.- Returns:
- a version of this URL builder that applies the requested policy
-