mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-23 05:01:04 +01:00
Implemented that everything gets cached for at least a minute
This commit is contained in:
parent
249f722865
commit
67c5dca7cb
@ -1,4 +1,11 @@
|
|||||||
# role native-nginx-docker-proxy
|
# role native-nginx-docker-proxy
|
||||||
|
|
||||||
|
## debug
|
||||||
|
```bash
|
||||||
|
curl -I {{address}}
|
||||||
|
```
|
||||||
|
- https://serverfault.com/questions/434915/nginx-proxy-caching-how-to-check-if-it-is-working
|
||||||
|
|
||||||
## performance
|
## performance
|
||||||
- https://stackoverflow.com/questions/33703230/caching-images-on-all-folder-levels-of-nginx-reverse-proxy
|
- https://stackoverflow.com/questions/33703230/caching-images-on-all-folder-levels-of-nginx-reverse-proxy
|
||||||
- https://www.tweaked.io/guide/nginx-proxying/
|
- https://www.tweaked.io/guide/nginx-proxying/
|
||||||
|
@ -14,6 +14,11 @@ location /
|
|||||||
proxy_read_timeout 300;
|
proxy_read_timeout 300;
|
||||||
send_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
|
# cache media files
|
||||||
location ~* \.(gif|ico|jpg|jpeg|png|svg|mp4|mp3|pdf)$ {
|
location ~* \.(gif|ico|jpg|jpeg|png|svg|mp4|mp3|pdf)$ {
|
||||||
proxy_cache cache;
|
proxy_cache cache;
|
||||||
|
Loading…
Reference in New Issue
Block a user