diff --git a/support/nginx/mobilizon-release.conf b/support/nginx/mobilizon-release.conf index d6303e0be..f074c3544 100644 --- a/support/nginx/mobilizon-release.conf +++ b/support/nginx/mobilizon-release.conf @@ -75,6 +75,13 @@ server { default_type "text/plain"; } + location ~ ^/img { + root /opt/mobilizon/priv/static; + etag off; + access_log off; + add_header Cache-Control "public, max-age=31536000, immutable"; + } + location ~ ^/(js|css) { root /opt/mobilizon/priv/static; etag off; diff --git a/support/nginx/mobilizon-source.conf b/support/nginx/mobilizon-source.conf index ab6a81f1c..ff626e197 100644 --- a/support/nginx/mobilizon-source.conf +++ b/support/nginx/mobilizon-source.conf @@ -75,6 +75,13 @@ server { default_type "text/plain"; } + location ~ ^/img { + root /opt/mobilizon/priv/static; + etag off; + access_log off; + add_header Cache-Control "public, max-age=31536000, immutable"; + } + location ~ ^/(js|css) { root /home/mobilizon/live/priv/static; etag off;