File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # ----------------------------------------------------------------------
2+ # | Content transformation |
3+ # ----------------------------------------------------------------------
4+
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+ #
9+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
10+ # https://tools.ietf.org/html/rfc7234#section-5.2.2.4
11+ #
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).
16+ #
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 `ngx_pagespeed`, note that disabling this will
23+ # prevent `PageSpeed` from rewriting HTML files, and, if the
24+ # `pagespeed DisableRewriteOnNoTransform` directive isn't set to
25+ # `off`, also from rewriting other resources.
26+ #
27+ # https://developers.google.com/speed/pagespeed/module/configuration#notransform
28+
29+ add_header Cache-Control "no-transform";
You can’t perform that action at this time.
0 commit comments