Commits

A S  committed b2c1841

Added Vary: Accept-Encoding header, favicon server correctly on ep.io

  • Participants
  • Parent commits 3309664

Comments (0)

Files changed (4)

 expires-/static = 1209600
 
 [static]
-/static = pypysite/static/
+/static = pypysite/static/
+/favicon.ico = pypysite/static/favicon.ico
+/robots.txt = pypysite/static/robots.txt
+/humans.txt = pypysite/static/humans.txt

File pypysite/static/favicon.ico

Added
New image

File pypysite/static/humans.txt

   Rodrigo Araújo
 
 /* WEB */
-  Design/build: Ante Salinovic
-  Site: www.nikvda.com
-  Twitter: @nikvda
-  Location: Sydney, Australia
+  Ante Salinovic
 
 /* SITE */
   Software: Python/Flask

File pypysite/utils.py

     def new_func(*args, **kwargs):
         resp = make_response(f(*args, **kwargs))
         resp.headers['Cache-Control'] = 'max-age=28800'
+        resp.headers['Vary'] = 'Accept-Encoding'
         return resp
     return update_wrapper(new_func, f)