yakuza0 2.23.8-beta.0 → 2.23.8-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.23.8-beta.0",
3
+ "version": "2.23.8-beta.3",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -72,7 +72,7 @@
72
72
  "koa": "^2.13.3",
73
73
  "koa-body": "^4.0.4",
74
74
  "koa-compress": "^3.0.0",
75
- "koa-helmet": "^7.0.2",
75
+ "koa-helmet": "7.0.2",
76
76
  "koa-jwt": "^3.5.1",
77
77
  "koa-proxies": "^0.7.0",
78
78
  "koa-sslify": "^4.0.3",
@@ -523,7 +523,7 @@ exports.default = function () {
523
523
  var isDoc = ['text/html; charset=utf-8'].includes((proxyRes.headers['content-type'] || '').toLowerCase());
524
524
 
525
525
  // cache ---
526
- if (isDoc) {
526
+ if (isDoc && _config2.default.server.tire.isDocNoCache) {
527
527
  proxyRes.headers['Surrogate-Control'] = 'no-store';
528
528
  proxyRes.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, proxy-revalidate';
529
529
  proxyRes.headers['Pragma'] = 'no-cache';
@@ -544,7 +544,8 @@ var render = function () {
544
544
  guPath: '/gu',
545
545
  guConf: '/etc/nginx/nginx.conf',
546
546
  clnConf: '/tmp/conf.d/cln2.conf',
547
- resolve: ''
547
+ resolve: '',
548
+ isDocNoCache: true
548
549
  }
549
550
  },
550
551
  extend: {