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
|
// Remove the X-Powered-By header
|
||||||
server.disable("x-powered-by");
|
server.disable("x-powered-by");
|
||||||
|
|
||||||
// Turn on ETag support (for caching)
|
// Remove the ETag header (so that the client doesn't cache the response)
|
||||||
server.enable("etag");
|
server.disable("etag");
|
||||||
|
|
||||||
// Listen on the specified port
|
// Listen on the specified port
|
||||||
server.listen(port, () => {
|
server.listen(port, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user