Merged in feature/404fix (pull request #20)

Add 404.html with nocache

* Add 404.html with nocache


Approved-by: Rachit Bhargava
This commit is contained in:
Jay Sharma
2024-01-16 22:48:46 +00:00
committed by Rachit Bhargava
parent 1d401bd189
commit 98dfee814e
4 changed files with 22 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ data:
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}

View File

@@ -86,6 +86,12 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
@@ -138,6 +144,7 @@ data:
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
# pass the PHP scripts to FastCGI server listening on socket

View File

@@ -87,6 +87,12 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
{
@@ -138,6 +144,7 @@ data:
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
# pass the PHP scripts to FastCGI server listening on socket

View File

@@ -86,6 +86,12 @@ data:
#Cache everything by default
set $no_cache 0;
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
#Don't cache POST requests
if ($request_method = POST)
@@ -138,6 +144,7 @@ data:
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/subdomain/$subdomain;
add_header Cache-Control "no-cache" always;
}
# pass the PHP scripts to FastCGI server listening on socket