This is an automated email from the ASF dual-hosted git repository. machristie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata.git
commit 1caad3ecc2e5397d2b22143fa65bb3e38c5b4753 Author: Marcus Christie <[email protected]> AuthorDate: Mon Jul 17 17:29:24 2023 -0400 Ansible: add gzip/cache support for svg --- dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 b/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 index 0764c34bd2..858ee83696 100644 --- a/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 +++ b/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 @@ -61,14 +61,14 @@ <Directory {{ doc_root_dir }}/static> Require all granted - AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript image/svg+xml # Force browser to revalidate cached static resources Header set Cache-Control "no-cache" # Workaround for ETag bug: https://bz.apache.org/bugzilla/show_bug.cgi?id=45023#c22 RequestHeader edit "If-None-Match" '^"((.*)-gzip)"$' '"$1", "$2"' # If file has a content hash, cache for a year - <FilesMatch "\.[0-9a-f]{8}\.(css|js)$"> + <FilesMatch "\.[0-9a-f]{8}\.(css|js|svg)$"> Header set Cache-Control "max-age=31536000, public" </FilesMatch> </Directory>
