简体   繁体   中英

How to modify Cache-Control of a Plesk Server?

My server is a Ubuntu 12.04.5 LTS server running Plesk version 12.0.18. Even though I tried to modify Cache-Control in .htaccess and in httpd.conf, the website on the server returns the same Cache-Control header: "max-age=0, no-cache". Where can I find the file which stores this setting and how can I make a permanent change which does not get overwritten by any auto re-generation of the file?

It looks like that you have nginx enabled. In this case you should specify your Cache-Control settings in “Additional nginx directives” in Web Server Settings.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM