How can I insert a Cache-Control: no-transform
HTTP header in a WordPress site without using a plugin? Can it can be inserted in .htaccess
or function.php
?
You should be able to add the Cache-Control header with .htaccess
, if it's being served with Apache and you have .htaccess
enabled:
Header set Cache-Control "no-transform"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.