4.0.0 • Published 2 years ago

nocache v4.0.0

Weekly downloads
1,187,418
License
MIT
Repository
github
Last release
2 years ago

Middleware to turn off caching

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 three headers, disabling a lot of browser caching:

  • Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidate
  • 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.

easy-select-rnmoonpay-apirectified-iocac-api-framework@arcblock/devconvendor-enquiry-apifcenail-serverairscanairscan-examplereact-native-esc-pos-sahaabclippd-ingestion@borisovart/atol-kkt-module@bitexchange-ltd/bitexchange-server-7.5.0-beta.3deneme323112@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkworks-api-reportreact-native-printer-brothersreact-native-shekhar-bridge-testwilscanner@oiti/documentoscopy-react-nativequoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-nocluminos-ui-core@everything-registry/sub-chunk-2297jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegriffin-ui-library@xrnher-labz/nodejs-server-coretailwindtest-library-123test-haptik-libtest-npm-jjmessiwolkenkitwifi_configuration_packagetest-zeo-collectsuzuthe-backendthe-backend-corevision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvantiq-reactjaid-devjaidjrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libipv-hmpo-appkeepix-server-buildkhaled-salem-custom-componentsknaack-backendknaackee-backendknaackee-backend-2knaackee-backend-coreind-litehome-assistant-matter-hubhasura-backend-plushops-expresshmpo-apphmpo-app-chris-testhicards-nodehelmet-plus-pluslinchen-2048lets-mfa-expressmanetmanan-react-native-expo-authorize-netmediaviewkvell-scriptslamassu-configskotak-zokonek-api@webacad/angular-tools@wecraftapps/react-native-use-keyboard@webextensions/live-css@twilio/runtime-handler@tlgeo/react-native-gdal@thinxviewx/core-rn@ubi2/adapter.http@twentyfourg/cloud-sdk@tonysusi/vapid@trackier/react-native-trackier@vidit-me/react-native-wheely@yash3492/rest-server@yevhtest/cli-server-api@zotasys/nativeagent-get-agentablayeraffinidi-auth-sdk-kernelact_mvvm_shop_cartadyen-rnawesome-module-kdbacktrace-service
4.0.0

2 years ago

3.0.4

3 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.0

7 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.4.0

10 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago