Disable caching for frontend Co-authored-by: widlam <mikolaj.widla@gmail.com> Reviewed-on: #146 Reviewed-by: Adam Bem <bema@noreply.example.com> Co-authored-by: Mikolaj Widla <widlam@noreply.example.com> Co-committed-by: Mikolaj Widla <widlam@noreply.example.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			598 B
		
	
	
	
		
			Nginx Configuration File
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			598 B
		
	
	
	
		
			Nginx Configuration File
		
	
	
	
	
	
| server {
 | |
|     listen       80;
 | |
|     listen  [::]:80;
 | |
|     server_name  localhost;
 | |
| 
 | |
|     #access_log  /var/log/nginx/host.access.log  main;
 | |
| 
 | |
|     location / {
 | |
|         root   /usr/share/nginx/html;
 | |
|         index  index.html index.htm;
 | |
|         expires -1;
 | |
|         add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
 | |
|     }
 | |
| 
 | |
|     #error_page  404              /404.html;
 | |
| 
 | |
|     # redirect server error pages to the static page /50x.html
 | |
|     #
 | |
|     error_page   500 502 503 504  /50x.html;
 | |
|     location = /50x.html {
 | |
|         root   /usr/share/nginx/html;
 | |
|     }
 | |
| 
 | |
| } |