This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
linux:ispconfig [2024/02/08 19:20] – Jan Forman | linux:ispconfig [2024/04/25 13:50] – Jan Forman | ||
---|---|---|---|
Line 227: | Line 227: | ||
# Adding the cache control header for js and css files | # Adding the cache control header for js and css files | ||
# Make sure it is BELOW the PHP block | # Make sure it is BELOW the PHP block | ||
- | location ~* \.(?: | + | location ~* \.(?:css|js|mjs)$ { |
try_files $uri / | try_files $uri / | ||
add_header Cache-Control " | add_header Cache-Control " |