@mashroom/mashroom-browser-cache
Advanced tools
Comparing version 1.9.3 to 2.0.0-alpha.0
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "1.9.3", | ||
"version": "2.0.0-alpha.0", | ||
"files": [ | ||
@@ -14,12 +14,6 @@ "dist/**", | ||
"devDependencies": { | ||
"@babel/cli": "^7.15.7", | ||
"@mashroom/mashroom": "1.9.3", | ||
"@mashroom/mashroom-security": "1.9.3", | ||
"@mashroom/mashroom-utils": "1.9.3", | ||
"@types/express": "^4.17.13", | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^14.17.17", | ||
"eslint": "^7.32.0", | ||
"jest": "^27.2.0", | ||
"typescript": "^4.4.3" | ||
"@mashroom/mashroom": "2.0.0-alpha.0", | ||
"@mashroom/mashroom-security": "2.0.0-alpha.0", | ||
"@mashroom/mashroom-utils": "2.0.0-alpha.0", | ||
"@types/express": "^4.17.13" | ||
}, | ||
@@ -26,0 +20,0 @@ "jest": { |
# 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 **Microfrontend Integration Platform**. | ||
This plugin adds a Service to manage cache control headers. It allows to disable the cache globally. | ||
This plugin adds a Service to manage cache control headers. It also allows to disable the cache globally. | ||
@@ -20,3 +20,3 @@ ## Usage | ||
const cacheControlService: MashroomCacheControlService = req.pluginContext.services.browserCache.cacheControl; | ||
await cacheControlService.addCacheControlHeader(req, res); | ||
await cacheControlService.addCacheControlHeader('ONLY_FOR_ANONYMOUS_USERS', req, res); | ||
@@ -50,3 +50,3 @@ // .. | ||
```js | ||
```ts | ||
export interface MashroomCacheControlService { | ||
@@ -65,1 +65,6 @@ /** | ||
Caching Policies are: | ||
```ts | ||
export type CachingPolicy = 'SHARED' | 'PRIVATE_IF_AUTHENTICATED' | 'NEVER' | 'ONLY_FOR_ANONYMOUS_USERS'; | ||
``` |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
8176
4
68
1