mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 03:46:07 +08:00
修复后端 html 缓存
This commit is contained in:
parent
e70fa83074
commit
6ac755b478
|
@ -38,6 +38,17 @@ export default ({ app }: { app: Application }) => {
|
||||||
return handler(req, res, {
|
return handler(req, res, {
|
||||||
public: path.join(config.rootPath, 'static/dist'),
|
public: path.join(config.rootPath, 'static/dist'),
|
||||||
rewrites: [{ source: '**', destination: '/index.html' }],
|
rewrites: [{ source: '**', destination: '/index.html' }],
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
source: 'index.html',
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
key: 'Cache-Control',
|
||||||
|
value: 'no-cache',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -29,7 +29,6 @@ RUN set -x \
|
||||||
&& apk upgrade \
|
&& apk upgrade \
|
||||||
&& apk --no-cache add -f bash \
|
&& apk --no-cache add -f bash \
|
||||||
coreutils \
|
coreutils \
|
||||||
moreutils \
|
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
wget \
|
wget \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user