From d75f22a6907030582f9853f9797e7577a4a86163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Oliveira?= Date: Tue, 2 Dec 2014 21:51:56 +0000 Subject: [PATCH] Serve badges with "Cache-Control: no-cache" This should suppress GitHub's aggressive image caching. --- cfg/etc/nginx/sites-available/melpa | 4 ++++ cfg/etc/nginx/sites-available/melpa-stable | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cfg/etc/nginx/sites-available/melpa b/cfg/etc/nginx/sites-available/melpa index 9b426eaa..607d6c19 100644 --- a/cfg/etc/nginx/sites-available/melpa +++ b/cfg/etc/nginx/sites-available/melpa @@ -68,6 +68,10 @@ server { proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; } + + 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 ad5fcd14..2ce7b200 100644 --- a/cfg/etc/nginx/sites-available/melpa-stable +++ b/cfg/etc/nginx/sites-available/melpa-stable @@ -66,6 +66,10 @@ server { proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; } + + location /packages/*.svg { + add_header Cache-Control no-cache; + } }