nocache

WebJar for nocache

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

nocache
Последняя версия

Последняя версия

2.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

nocache
WebJar for nocache
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/helmetjs/nocache

Скачать nocache

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/nocache/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>nocache</artifactId>
    <version>2.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/nocache/
implementation 'org.webjars.npm:nocache:2.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/nocache/
implementation ("org.webjars.npm:nocache:2.1.0")
'org.webjars.npm:nocache:jar:2.1.0'
<dependency org="org.webjars.npm" name="nocache" rev="2.1.0">
  <artifact name="nocache" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='nocache', version='2.1.0')
)
libraryDependencies += "org.webjars.npm" % "nocache" % "2.1.0"
[org.webjars.npm/nocache "2.1.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Middleware to turn off caching

Build Status

This Express middleware sets some HTTP response headers to try to disable client-side caching.

To use it:

const nocache = require("nocache");

// ...

app.use(nocache());

This sets four headers, disabling a lot of browser caching:

  • Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidate
  • Pragma: no-cache
  • Expires: 0
  • Surrogate-Control: no-store

You may wish to do this if you want to ensure that users have up-to-date resources, or if you want to clear out an old version for some reason.

org.webjars.npm

Helmet

Express.js security with HTTP headers

Версии библиотеки

Версия
2.1.0