add modified apicache library with disabling client cache

This commit is contained in:
LouisLam
2021-09-22 00:58:22 +08:00
parent 0834770509
commit 8c7ee94769
6 changed files with 831 additions and 14 deletions

View File

@@ -0,0 +1,14 @@
const apicache = require("./apicache");
apicache.options({
headerBlacklist: [
"cache-control"
],
headers: {
// Disable client side cache, only server side cache.
// BUG! Not working for the second request
"cache-control": "no-cache",
},
});
module.exports = apicache;