Przeglądaj źródła

Properly cache board previews

dev_h
Ophir LOJKINE 5 lat temu
rodzic
commit
ff7a8edcb8
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      server/server.js

+ 2
- 1
server/server.js Wyświetl plik

@@ -114,7 +114,8 @@ function handleRequest(request, response) {
114 114
 			response.writeHead(200, {
115 115
 				"Content-Type": "image/svg+xml",
116 116
 				"Content-Security-Policy": CSP,
117
-				'Content-Length': Buffer.byteLength(svg),
117
+				"Content-Length": Buffer.byteLength(svg),
118
+				"Cache-Control": "public, max-age=7200",
118 119
 			});
119 120
 			response.end(svg);
120 121
 		});

Ładowanie…
Anuluj
Zapisz