# Cache hashed static assets (Vite build output)
# Include this in your nginx server block.

location ~* ^/build/assets/.*\.(?:css|js|mjs|json|map|png|jpe?g|gif|webp|avif|svg|ico|woff2?|ttf|otf|eot)$ {
    add_header Cache-Control "public, max-age=31536000, immutable" always;
    try_files $uri =404;
}

# Example usage in nginx server block:
# server {
#     listen 80;
#     server_name example.com;
#
#     include /path/to/nginx-gzip.conf;
#     include /path/to/nginx-static-cache.conf;
#
#     # ... rest of config
# }
