@mashroom/mashroom-browser-cache
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -42,3 +42,6 @@ "use strict"; | ||
authenticated = !!user; | ||
publicResource = !authenticated; | ||
if (cachingPolicy === 'PRIVATE_IF_AUTHENTICATED' && authenticated) { | ||
publicResource = false; | ||
} | ||
} | ||
@@ -45,0 +48,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"files": [ | ||
@@ -15,5 +15,5 @@ "dist/**", | ||
"@babel/cli": "^7.14.8", | ||
"@mashroom/mashroom": "1.8.0", | ||
"@mashroom/mashroom-security": "1.8.0", | ||
"@mashroom/mashroom-utils": "1.8.0", | ||
"@mashroom/mashroom": "1.8.1", | ||
"@mashroom/mashroom-security": "1.8.1", | ||
"@mashroom/mashroom-utils": "1.8.1", | ||
"@types/express": "^4.17.13", | ||
@@ -20,0 +20,0 @@ "@types/jest": "^26.0.24", |
import type {Request, Response} from 'express'; | ||
export type CachingPolicy = 'ALWAYS' | 'NEVER' | 'ONLY_FOR_ANONYMOUS_USERS'; | ||
export type CachingPolicy = 'SHARED' | 'PRIVATE_IF_AUTHENTICATED' | 'NEVER' | 'ONLY_FOR_ANONYMOUS_USERS'; | ||
@@ -6,0 +6,0 @@ export interface MashroomCacheControlService { |
@@ -5,3 +5,3 @@ // @flow | ||
export type CachingPolicy = 'ALWAYS' | 'NEVER' | 'ONLY_FOR_ANONYMOUS_USERS'; | ||
export type CachingPolicy = 'SHARED' | 'PRIVATE_IF_AUTHENTICATED' | 'NEVER' | 'ONLY_FOR_ANONYMOUS_USERS'; | ||
@@ -8,0 +8,0 @@ export interface MashroomCacheControlService { |
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
8149
99