We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a5c4b5 commit 93bbdc8Copy full SHA for 93bbdc8
packages/server/PWAHandler.ts
@@ -3,6 +3,8 @@ import acceptsBrotli from './acceptsBrotli'
3
import serveStatic from './utils/serveStatic'
4
5
const PWAHandler = (res: HttpResponse, req: HttpRequest) => {
6
- serveStatic(res, req.getUrl().slice(1), acceptsBrotli(req))
+ if (!serveStatic(res, req.getUrl().slice(1), acceptsBrotli(req))) {
7
+ res.writeStatus('404').end()
8
+ }
9
}
10
export default PWAHandler
0 commit comments