瀏覽代碼

de-stomp earlier vars (oops)

George Baugh 2 年之前
父節點
當前提交
d4d8bacae2
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      lib/Trog/Vars.pm

+ 13 - 0
lib/Trog/Vars.pm

@@ -6,3 +6,16 @@ use warnings;
 #1MB chunks
 our $CHUNK_SEP  = 'tCMSep666YOLO42069';
 our $CHUNK_SIZE = 1024000;
+
+our %content_types = (
+    plain => "text/plain;",
+    html  => "text/html; charset=UTF-8",
+    json  => "application/json;",
+    blob  => "application/octet-stream;",
+);
+
+our %cache_control = (
+    revalidate => "no-cache, max-age=0",
+    nocache    => "no-store",
+    static     => "public, max-age=604800, immutable",
+);