Skip to content

Commit

Permalink
Update cache_expiration.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Apr 18, 2024
1 parent e807b27 commit 109ebd1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions h5bp/web_performance/cache_expiration.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
# (!) If you don't control versioning with filename-based cache busting, you
# should consider lowering the cache times to something like one week.
#
# (!) When using `.htaccess` file, the webserver config may have already
# a preset some file types.
# In that case, the general rule with `ExpiresDefault` might not be applied.
# In order to override any presets, uncomment the appropriate "Generic"
# lines below.
# Online checker or validators can help investigating the served cache policy.
#
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires
# https://httpd.apache.org/docs/current/mod/mod_expires.html
Expand Down Expand Up @@ -48,13 +55,6 @@
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 109ebd1

Please sign in to comment.