inoxkit Posted January 6 Share Posted January 6 Bonjour je suis sur un serveur Apache servi par Nginx et je cherche à mettre en place un cache TTL sur les images produits et catégories qui sont générées à la volée J'ai essayé de mettre la directive suivante sur mon serveur location ~* .(js|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|jpg|webp|rtf|swf|ico|png|flv|txt|ttf|woff|woff2|svg)$ { etag on; if_modified_since exact; add_header Pragma "public"; add_header Cache-Control "max-age=31536000, public"; } mais du coup les images produits et catégories jpg et webp disparaissent quelqu'un a une idée ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now