소스 검색

Add private to Cache-Control

Marcos Kirsch 7 년 전
부모
커밋
1cc0d120f0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      httpserver-header.lua

+ 1 - 1
httpserver-header.lua

@@ -21,7 +21,7 @@ return function (connection, code, extension, isGzipped)
 
    connection:send("HTTP/1.0 " .. code .. " " .. getHTTPStatusString(code) .. "\r\nServer: nodemcu-httpserver\r\nContent-Type: " .. mimeType .. "\r\nnCache-Control: private, no-store\r\n")
    if isGzipped then
-      connection:send("Cache-Control: max-age=2592000\r\nContent-Encoding: gzip\r\n")
+      connection:send("Cache-Control: private, max-age=2592000\r\nContent-Encoding: gzip\r\n")
    end
    connection:send("Connection: close\r\n\r\n")