* Set the an attribute on the request to show whether the page can should
* be cached
* @param canCache - true iff the css reference is internal only
*/
private void setPageCacheAttribute(boolean canCache) {
EnvironmentContext environmentContext =
getMarinerPageContext().getEnvironmentContext();
if (canCache) {
environmentContext.setAttribute(
CacheScopeConstant.CACHE_SCOPE_ATTRIBUTE,
CacheScopeConstant.CAN_CACHE_PAGE);
} else {
environmentContext.setAttribute(
CacheScopeConstant.CACHE_SCOPE_ATTRIBUTE,
CacheScopeConstant.CAN_NOT_CACHE_PAGE);
}
}