Parcourir la source

Added Cache-Controle: private header.

Taddeus Kroes il y a 14 ans
Parent
commit
63fce00c82
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/cache.py

+ 1 - 0
src/cache.py

@@ -155,6 +155,7 @@ class Cache:
         #try:
         web.http.modified(seconds_to_datetime(last_modified), self.etag())
         web.http.expires(timedelta(**self.expires))
+        web.header('Cache-Control', 'private')
 
         if not server_modified:
             # Concatenated content has not been loaded yet, read the cached