1. Andriy Kornatskyy
  2. wheezy.web

Commits

Andriy Kornatskyy  committed c99b1f3

Fix http cachability for public pages in demo template.

  • Participants
  • Parent commits afab18d
  • Branches default

Comments (0)

Files changed (1)

File demos/template/src/public/web/profile.py

View file
  • Ignore whitespace
 public_cache_profile = CacheProfile(
     'both',
     duration=timedelta(minutes=15),
+    # this cause browser to send request each time
+    # so the server is able to respond with code 304
+    http_max_age=0,
     vary_environ=['HTTP_ACCEPT_ENCODING'],
     vary_cookies=['_a'],
     http_vary=['Cookie'],