Set a short Cache-Control expiry for bodhi2.
This commit is contained in:
parent
2d78872214
commit
65f34a07e0
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue