• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved How to remove Cache-Control Use .htaccess?

v123shine

New Pleskian
Hi,

How to remove must-revalidate and max-age=0 from Cache-Control header using .htaccess?

And How to remove X-Powered-By PHP/5.6.24 using .htaccess?
I try using this code: Header unset X-Powered-By but still not work.

Can someone help me, please! Thanks

Note:
- I'm using Plesk 12.0.18
- PHP run as FastCGI
- Web Server Setting, using Smart static files processing with Serve static files directly by nginx.
 
Last edited:
Hi v123shine,

pls. be informed, that
How to remove must-revalidate and max-age=0 from Cache-Control header using .htaccess?
conflicts with the fact
- Web Server Setting, using Smart static files processing with Serve static files directly by nginx.
NGINX can't read ".htaccess" - files... you have to use "additional directives", when you use nginx.

Before giving additional suggestions to this question, can you pls. explain, why you would like to remove cache-control?


And How to remove X-Powered-By PHP/5.6.24 using .htaccess?
I try using this code: Header unset X-Powered-By but still not work.
To remove this information, consider to modify:

Code:
...
expose_php = off
...

at your depending PHP.ini - file(s).

Hint:
You could find it usefull, to use "sed", after you located your depending PHP.ini - file(s):

Examples:
Code:
find / -type f -name "*.ini" -exec grep -i -H "expose_php ="  {} \;
Code:
sed -i -e 's/expose_php = on/expose_php = off/' /etc/php/php.ini
 
Back
Top