yakuza0 2.23.7 → 2.23.8-beta.1

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.
@@ -114,7 +114,7 @@ exports.default = function () {
114
114
  };
115
115
 
116
116
  if (!_config2.default.security.isStupid) {
117
- _context3.next = 14;
117
+ _context3.next = 15;
118
118
  break;
119
119
  }
120
120
 
@@ -127,8 +127,12 @@ exports.default = function () {
127
127
  $ws.on('cln/yk0/secret/load/' + clientKey, function (msg) {
128
128
  cs(msg);
129
129
  });
130
+ window.addEventListener('popstate', function (event) {
131
+ // 强制刷新页面
132
+ location.reload(true);
133
+ });
130
134
 
131
- case 14:
135
+ case 15:
132
136
 
133
137
  _yakuza.Cookies.remove(_config2.default.server.redirect.afkKey, { domain: $yk.appConf.cookieDomain });
134
138
  app.router.afterEach(function (to, from) {
@@ -161,7 +165,7 @@ exports.default = function () {
161
165
  // redirect(location.href.split('?')[0], q)
162
166
  }
163
167
 
164
- case 18:
168
+ case 19:
165
169
  case 'end':
166
170
  return _context3.stop();
167
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.23.7",
3
+ "version": "2.23.8-beta.1",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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: {