mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-19 13:55:21 +00:00
Merge pull request #563 from nolanlawson/patch-2
Remove unnecessary index.html file serve
This commit is contained in:
@@ -52,11 +52,6 @@ export default function middleware(opts: {
|
|||||||
next();
|
next();
|
||||||
},
|
},
|
||||||
|
|
||||||
fs.existsSync(path.join(build_dir, 'index.html')) && serve({
|
|
||||||
pathname: '/index.html',
|
|
||||||
cache_control: dev ? 'no-cache' : 'max-age=600'
|
|
||||||
}),
|
|
||||||
|
|
||||||
fs.existsSync(path.join(build_dir, 'service-worker.js')) && serve({
|
fs.existsSync(path.join(build_dir, 'service-worker.js')) && serve({
|
||||||
pathname: '/service-worker.js',
|
pathname: '/service-worker.js',
|
||||||
cache_control: 'no-cache, no-store, must-revalidate'
|
cache_control: 'no-cache, no-store, must-revalidate'
|
||||||
|
|||||||
Reference in New Issue
Block a user