Skip to content

Commit bc39e4c

Browse files
committed
Revert "Drop Cache-Control: no-transform usage"
This partially reverts commit 282d979 Ref h5bp/server-configs-apache#185
1 parent 611ed75 commit bc39e4c

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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";

0 commit comments

Comments
 (0)