forked from binary-com/deriv-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deriv.com.conf
43 lines (32 loc) · 918 Bytes
/
deriv.com.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
server {
listen 80;
server_name _;
charset UTF-8;
error_page 404 /404.html;
root /usr/share/nginx/html;
index index.html index.htm;
location @custom_error_503 {
return 503;
}
location ~ /\.git {
return 404;
}
location = /sw.js {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location ~* \.(html)$ {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location ~ (app-data\.json)$ {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location /page-data {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location /static {
add_header Cache-Control "public, max-age=31536000, immutable";
}
location ~* \.(?:js|css)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
}