Skip to content

Commit 0824dbb

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [AssetMapper] Recommending `Cache-Control` instead of `Expires` HTTP header
2 parents a9137f7 + 7261f52 commit 0824dbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/asset_mapper.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,10 @@ which will automatically do most of these things for you:
621621
enable `auto minify`_ to further compress your assets (e.g. removing
622622
whitespace and comments from JavaScript and CSS files).
623623

624-
- **Set long-lived Expires headers**: Your web server should set long-lived
625-
``Expires`` HTTP headers on your assets. Because the AssetMapper component includes a version
626-
hash in the filename of each asset, you can safely set the ``Expires`` header
627-
to a very long time in the future (e.g. 1 year). This isn't automatic in
624+
- **Set long-lived cache expiry**: Your web server should set a long-lived
625+
``Cache-Control`` HTTP header on your assets. Because the AssetMapper component includes a version
626+
hash in the filename of each asset, you can safely set ``max-age``
627+
to a very long time (e.g. 1 year). This isn't automatic in
628628
any web server, but can be easily enabled.
629629

630630
Once you've done these things, you can use a tool like `Lighthouse`_ to

0 commit comments

Comments
 (0)