Skip to content
Snippets Groups Projects
Commit 988d1d20 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added cache header for static and public files (refs #18984).

parent 8caf1b67
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,9 @@ server { ...@@ -24,6 +24,9 @@ server {
error_log /var/log/nginx/error_msuser.log; error_log /var/log/nginx/error_msuser.log;
location /public { location /public {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
} }
location /resources { location /resources {
location ~ \.ts$ { location ~ \.ts$ {
...@@ -42,8 +45,14 @@ server { ...@@ -42,8 +45,14 @@ server {
} }
} }
location /static { location /static {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
} }
location /crossdomain { location /crossdomain {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
} }
location /streaming/ { location /streaming/ {
proxy_pass http://localhost:1935/live/; proxy_pass http://localhost:1935/live/;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment