mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Implemented that everything gets cached for at least a minute
This commit is contained in:
@@ -14,6 +14,11 @@ location /
|
||||
proxy_read_timeout 300;
|
||||
send_timeout 300;
|
||||
|
||||
# general caching
|
||||
proxy_cache cache;
|
||||
proxy_cache_key $host$uri$is_args$args;
|
||||
proxy_cache_valid any 1m;
|
||||
|
||||
# cache media files
|
||||
location ~* \.(gif|ico|jpg|jpeg|png|svg|mp4|mp3|pdf)$ {
|
||||
proxy_cache cache;
|
||||
|
Reference in New Issue
Block a user