Selaa lähdekoodia

de-stomp earlier vars (oops)

George Baugh 2 vuotta sitten
vanhempi
sitoutus
d4d8bacae2
1 muutettua tiedostoa jossa 13 lisäystä ja 0 poistoa
  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",
+);