This commit is contained in:
parent
4402b42756
commit
4a3c26b7fa
@ -25,8 +25,8 @@ export function createServer({ port = 3000, onLoaded }: ServerType): Express {
|
||||
// Remove the X-Powered-By header
|
||||
server.disable("x-powered-by");
|
||||
|
||||
// Turn on ETag support (for caching)
|
||||
server.enable("etag");
|
||||
// Remove the ETag header (so that the client doesn't cache the response)
|
||||
server.disable("etag");
|
||||
|
||||
// Listen on the specified port
|
||||
server.listen(port, () => {
|
||||
|
Loading…
Reference in New Issue
Block a user