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.3.2 to 1.4.0

12

package.json

@@ -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 @@

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