From 65f34a07e0d9bc613d9b97469bd3a12957d93b20 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 26 Aug 2015 17:41:49 +0000 Subject: [PATCH] Set a short Cache-Control expiry for bodhi2. --- roles/bodhi2/base/templates/bodhi-app.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/bodhi2/base/templates/bodhi-app.conf b/roles/bodhi2/base/templates/bodhi-app.conf index 5f18a6d210..c21caa29ec 100644 --- a/roles/bodhi2/base/templates/bodhi-app.conf +++ b/roles/bodhi2/base/templates/bodhi-app.conf @@ -5,6 +5,15 @@ Alias /static /usr/lib/python2.7/site-packages/bodhi/static/ Header set Access-Control-Allow-Origin "*" + + Header unset Cache-Control + # For now, we have the cache expiry set to 1 hour while we do rapid development. + Header add Cache-Control "max-age=3600" + # Eventually, we want to scale this back to a much longer time frame when things stabilize... + #Header add Cache-Control "max-age=2592000" + + + WSGIDaemonProcess bodhi user=bodhi group=bodhi display-name=bodhi processes={{wsgi_procs}} threads={{wsgi_threads}} WSGISocketPrefix run/wsgi WSGIRestrictStdout On