Skip to content

Instantly share code, notes, and snippets.

View leogenot's full-sized avatar

Léo Genot leogenot

View GitHub Profile
@leogenot
leogenot / nginx-wordpress-gzip-cache
Created February 7, 2024 08:52 — forked from BaronVonPerko/nginx-wordpress-gzip-cache
nginx configuration for gzip and browser caching - great for wordpress running on a Laravel Forge managed server.
#GZIP
# Enable gzip compression.
gzip on;
# Compression level (1-9).
# 5 is a perfect compromise between size and CPU usage, offering about
# 75% reduction for most ASCII files (almost identical to level 9).
gzip_comp_level 5;
# Don't compress anything that's already small and unlikely to shrink much