From 1834069f666ee92a5475247a30d0d1c387c42656 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Fri, 12 Dec 2014 16:11:35 +0000 Subject: [PATCH] Fix location match patterns for badge cache-control rules See #2231 --- cfg/etc/nginx/sites-available/melpa | 2 +- cfg/etc/nginx/sites-available/melpa-stable | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cfg/etc/nginx/sites-available/melpa b/cfg/etc/nginx/sites-available/melpa index 607d6c19..3f4ca8b4 100644 --- a/cfg/etc/nginx/sites-available/melpa +++ b/cfg/etc/nginx/sites-available/melpa @@ -69,7 +69,7 @@ server { proxy_temp_file_write_size 64k; } - location /packages/*.svg { + location ~ ^/packages/.*\.svg { add_header Cache-Control no-cache; } } diff --git a/cfg/etc/nginx/sites-available/melpa-stable b/cfg/etc/nginx/sites-available/melpa-stable index 2ce7b200..c5cd8edd 100644 --- a/cfg/etc/nginx/sites-available/melpa-stable +++ b/cfg/etc/nginx/sites-available/melpa-stable @@ -67,7 +67,8 @@ server { proxy_temp_file_write_size 64k; } - location /packages/*.svg { + + location ~ ^/packages/.*\.svg { add_header Cache-Control no-cache; } }