diff --git a/roles/pagure/frontend/templates/0_pagure.conf b/roles/pagure/frontend/templates/0_pagure.conf index 50c2d6e9b0..87009fce04 100644 --- a/roles/pagure/frontend/templates/0_pagure.conf +++ b/roles/pagure/frontend/templates/0_pagure.conf @@ -78,6 +78,12 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na Alias /static /usr/lib/python2.7/site-packages/pagure/static/ + + ExpiresActive On + ExpiresDefault "access plus 1 week" + Header append Cache-Control "public" + + SetEnv GIT_PROJECT_ROOT /srv/git/repositories @@ -145,6 +151,12 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na Alias /static /usr/lib/python2.7/site-packages/pagure/static/ + + ExpiresActive On + ExpiresDefault "access plus 1 week" + Header append Cache-Control "public" + + WSGIProcessGroup paguredocs