From 393799bcd3ad7e6a3fddfb4dbdc2c49dac18904d Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Sun, 4 Jan 2015 21:25:04 +0000 Subject: [PATCH] Serve /packages/*.el as text/plain (see #2351) --- cfg/home/etc/nginx | 3 +++ cfg/home/etc/nginx-stable | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cfg/home/etc/nginx b/cfg/home/etc/nginx index 97e6d6f4..a3f0415b 100644 --- a/cfg/home/etc/nginx +++ b/cfg/home/etc/nginx @@ -86,6 +86,9 @@ http { location = /packages/archive-contents { default_type text/plain; } + location ~ ^/packages/.*\.el { + default_type text/plain; + } location ~ ^/packages/.*\.svg { add_header Cache-Control no-cache; } diff --git a/cfg/home/etc/nginx-stable b/cfg/home/etc/nginx-stable index d7d03f3e..cbfdf07e 100644 --- a/cfg/home/etc/nginx-stable +++ b/cfg/home/etc/nginx-stable @@ -87,6 +87,9 @@ http { location = /packages/archive-contents { default_type text/plain; } + location ~ ^/packages/.*\.el { + default_type text/plain; + } location ~ ^/packages/.*\.svg { add_header Cache-Control no-cache; }