Package | Description |
---|---|
io.wcm.wcm.commons.caching |
Helper classes for managing HTTP caching headers for resources and pages.
|
Modifier and Type | Class and Description |
---|---|
class |
PageModificationDateProvider
ModificationDateProvider for a Page object. |
class |
ResourceModificationDateProvider
ModificationDateProvider for a Resource object. |
Modifier and Type | Method and Description |
---|---|
static boolean |
CacheHeader.isNotModified(@NotNull ModificationDateProvider dateProvider,
@NotNull org.apache.sling.api.SlingHttpServletRequest request,
@NotNull org.apache.sling.api.SlingHttpServletResponse response)
Compares the "If-Modified-Since header" of the incoming request with the last modification date of an aggregated
resource.
|
static boolean |
CacheHeader.isNotModified(@NotNull ModificationDateProvider dateProvider,
@NotNull org.apache.sling.api.SlingHttpServletRequest request,
@NotNull org.apache.sling.api.SlingHttpServletResponse response,
boolean setExpiresHeader)
Compares the "If-Modified-Since header" of the incoming request with the last modification date of an aggregated
resource.
|
static @Nullable Date |
ModificationDate.mostRecent(ModificationDateProvider... dateProviders)
Finds the most recent modification date from a
ModificationDateProvider and multiple additional resources |
Copyright © 2014–2019 wcm.io. All rights reserved.