Serve /packages/*.el as text/plain (see #2351)

This commit is contained in:
Steve Purcell 2015-01-04 21:25:04 +00:00
parent 758d7d976b
commit 393799bcd3
2 changed files with 6 additions and 0 deletions

View file

@ -86,6 +86,9 @@ http {
location = /packages/archive-contents { location = /packages/archive-contents {
default_type text/plain; default_type text/plain;
} }
location ~ ^/packages/.*\.el {
default_type text/plain;
}
location ~ ^/packages/.*\.svg { location ~ ^/packages/.*\.svg {
add_header Cache-Control no-cache; add_header Cache-Control no-cache;
} }

View file

@ -87,6 +87,9 @@ http {
location = /packages/archive-contents { location = /packages/archive-contents {
default_type text/plain; default_type text/plain;
} }
location ~ ^/packages/.*\.el {
default_type text/plain;
}
location ~ ^/packages/.*\.svg { location ~ ^/packages/.*\.svg {
add_header Cache-Control no-cache; add_header Cache-Control no-cache;
} }