|
2 | 2 | # | Content transformation |
|
3 | 3 | # ----------------------------------------------------------------------
|
4 | 4 |
|
5 |
| -# Prevent intermediate caches or proxies (e.g.: such as the ones |
6 |
| -# used by mobile network providers) from modifying the website's |
7 |
| -# content. |
| 5 | +# Prevent intermediate caches or proxies (such as those used by mobile |
| 6 | +# network providers) and browsers data-saving features from modifying |
| 7 | +# the website's content using the `cache-control: no-transform` directive. |
8 | 8 | #
|
9 | 9 | # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
|
10 |
| -# https://tools.ietf.org/html/rfc2616#section-14.9.5 |
| 10 | +# https://tools.ietf.org/html/rfc7234#section-5.2.2.4 |
11 | 11 | #
|
12 |
| -# (!) If you are using `mod_pagespeed`, please note that setting |
13 |
| -# the `Cache-Control: no-transform` response header will prevent |
14 |
| -# `PageSpeed` from rewriting `HTML` files, and, if the |
15 |
| -# `ModPagespeedDisableRewriteOnNoTransform` directive isn't set |
16 |
| -# to `off`, also from rewriting other resources. |
| 12 | +# (!) Carefully consider the impact on your visitors before disabling |
| 13 | +# content transformation. These transformations are performed to |
| 14 | +# improve the experience for data- and cost-constrained users |
| 15 | +# (e.g. users on a 2G connection). |
17 | 16 | #
|
18 |
| -# https://developers.google.com/speed/pagespeed/module/configuration#notransform |
| 17 | +# You can test the effects of content transformation applied by |
| 18 | +# Google's Lite Mode by visiting: https://googleweblight.com/i?u=https://www.example.com |
| 19 | +# |
| 20 | +# https://support.google.com/webmasters/answer/6211428 |
| 21 | +# |
| 22 | +# (!) If you are using `mod_pagespeed`, note that disabling this will |
| 23 | +# prevent `PageSpeed` from rewriting HTML files, and, if the |
| 24 | +# `ModPagespeedDisableRewriteOnNoTransform` directive isn't set to |
| 25 | +# `off`, also from rewriting other resources. |
| 26 | +# |
| 27 | +# https://developers.google.com/speed/pagespeed/module/configuration#notransform |
19 | 28 |
|
20 | 29 | <IfModule mod_headers.c>
|
21 | 30 | Header merge Cache-Control "no-transform"
|
|
0 commit comments