Skip to content

Commit

Permalink
Update cache_expiration.conf
Browse files Browse the repository at this point in the history
Added explanatory text in case "ExpiresDefault" is not applied by default.
  • Loading branch information
creopard committed Apr 18, 2024
1 parent 1dc1bbd commit e807b27
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions h5bp/web_performance/cache_expiration.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
ExpiresByType application/xml "access"
ExpiresByType text/xml "access"

# Keep in mind that the webserver config may have already a preset some file types.
# If so the general rule with "ExpiresDefault" won't be applied for these types.
# This applies especially to image types. If you are not sure or are not able to check the config
# you can test your website with tools such as "Google Lighthouse" or https://pagespeed.web.dev/
# and look for complaints like "Serve static assets with an efficient cache policy".
# In order to override any preset(s), uncomment the appropriate lines below.

# Generic: WebAssembly
# ExpiresByType application/wasm "access plus 1 year" # default

Expand Down

0 comments on commit e807b27

Please sign in to comment.