Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mashroom/mashroom-browser-cache

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mashroom/mashroom-browser-cache - npm Package Compare versions

Comparing version 1.9.3 to 2.0.0-alpha.0

16

package.json

@@ -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';
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc