@mashroom/mashroom-browser-cache
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"files": [ | ||
@@ -14,8 +14,8 @@ "dist/**", | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.3", | ||
"@mashroom/mashroom": "1.3.2", | ||
"@mashroom/mashroom-security": "1.3.2", | ||
"@mashroom/mashroom-utils": "1.3.2", | ||
"@babel/cli": "^7.8.4", | ||
"@mashroom/mashroom": "1.4.0", | ||
"@mashroom/mashroom-security": "1.4.0", | ||
"@mashroom/mashroom-utils": "1.4.0", | ||
"eslint": "^6.8.0", | ||
"jest": "^24.9.0" | ||
"jest": "^25.1.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "jest": { |
### Mashroom Browser Cache | ||
# Mashroom Browser Cache | ||
Plugin for [Mashroom Server](https://www.mashroom-server.com), a **Integration Platform for Microfrontends**. | ||
Plugin for [Mashroom Server](https://www.mashroom-server.com), a **Integration Platform for Microfrontends**. | ||
This plugin adds a Service to manage cache control headers. It allows to disable the cache globally. | ||
#### Usage | ||
## Usage | ||
@@ -23,3 +23,3 @@ If *node_modules/@mashroom* is configured as plugin path just add **@mashroom/mashroom-browser-cache** as *dependency*. | ||
await cacheControlService.addCacheControlHeader(req, res); | ||
// .. | ||
@@ -46,5 +46,5 @@ }; | ||
#### Services | ||
## Services | ||
##### MashroomCacheControlService | ||
### MashroomCacheControlService | ||
@@ -57,3 +57,3 @@ The Cache Control service is accessible through _pluginContext.services.browserCache.cacheControl_ | ||
export interface MashroomCacheControlService { | ||
/** | ||
@@ -63,3 +63,3 @@ * Add the Cache-Control header based on the settings and authentication status | ||
addCacheControlHeader(request: ExpressRequest, response: ExpressResponse): Promise<void>; | ||
/** | ||
@@ -69,3 +69,3 @@ * Remove a previously set Cache-Control header | ||
removeCacheControlHeader(response: ExpressResponse): void; | ||
} | ||
@@ -72,0 +72,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
8144