[英]Cache-Control: no-transform header in WordPress without plugin
How can I insert a Cache-Control: no-transform
HTTP header in a WordPress site without using a plugin? 如何在不使用插件的情况下在WordPress网站中插入Cache-Control: no-transform
HTTP标头? Can it can be inserted in .htaccess
or function.php
? 可以将其插入.htaccess
或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: 你应该能够与添加Cache-Control头.htaccess
,如果它被送达Apache和你.htaccess
启用:
Header set Cache-Control "no-transform" 标头设置Cache-Control“无变换”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.