Created
June 18, 2024 12:27
-
-
Save devotdev/9a359ee235009ad5caba2d0a8b63f88e to your computer and use it in GitHub Desktop.
Benefits of caching - Webserver caching configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 3000; | |
proxy_cache my_cache; | |
location / { | |
proxy_set_header Host $host; | |
proxy_pass http://my-backend-service/; | |
proxy_cache_key $scheme://$host$uri$is_args$query_string; | |
proxy_cache_valid 200 10m; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment