Set a short Cache-Control expiry for bodhi2.

This commit is contained in:
Ralph Bean 2015-08-26 17:41:49 +00:00
parent 2d78872214
commit 65f34a07e0

View file

@ -5,6 +5,15 @@ Alias /static /usr/lib/python2.7/site-packages/bodhi/static/
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
<filesmatch ".(gif|jpe?g|png|css|js|eot|ttf|otf|woff)$">
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"
</filesmatch>
WSGIDaemonProcess bodhi user=bodhi group=bodhi display-name=bodhi processes={{wsgi_procs}} threads={{wsgi_threads}}
WSGISocketPrefix run/wsgi
WSGIRestrictStdout On