mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-06 19:26: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, {
|
||||
public: path.join(config.rootPath, 'static/dist'),
|
||||
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 --no-cache add -f bash \
|
||||
coreutils \
|
||||
moreutils \
|
||||
git \
|
||||
curl \
|
||||
wget \
|
||||
|
|
Loading…
Reference in New Issue
Block a user