@mashroom/mashroom-browser-cache
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -14,7 +14,6 @@ "use strict"; | ||
this._maxAgeSec = maxAgeSec; | ||
this._logger = loggerFactory('mashroom.browserCache.service'); | ||
const logger = loggerFactory('mashroom.browserCache.service'); | ||
if (devMode) { | ||
this._logger.info('Disabling browser cache because some packages are in dev mode'); | ||
logger.info('Disabling browser cache because some packages are in dev mode'); | ||
this._disabled = true; | ||
@@ -25,5 +24,6 @@ } | ||
async addCacheControlHeader(request, response) { | ||
const logger = request.pluginContext.loggerFactory('mashroom.browserCache.service'); | ||
if (request.method !== 'GET') { | ||
this._logger.warn(`Browser caching not possible for ${request.method} requests`); | ||
logger.warn(`Browser caching not possible for ${request.method} requests`); | ||
return; | ||
@@ -30,0 +30,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"files": [ | ||
@@ -15,5 +15,5 @@ "dist/**", | ||
"@babel/cli": "^7.6.0", | ||
"@mashroom/mashroom": "1.1.3", | ||
"@mashroom/mashroom-security": "1.1.3", | ||
"@mashroom/mashroom-utils": "1.1.3", | ||
"@mashroom/mashroom": "1.1.4", | ||
"@mashroom/mashroom-security": "1.1.4", | ||
"@mashroom/mashroom-utils": "1.1.4", | ||
"eslint": "^6.4.0", | ||
@@ -20,0 +20,0 @@ "jest": "^24.9.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7558
81