• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Static PHP Files

GigaBlast

New Pleskian
Hi, i have a slight performance problem i need to address. Any solutions please?

In .htaccess the expires header sets the expires to 1 second for all php files.
I have two php files which doesn't change very often, so the expires could be weekly, but there is no way to change the expires time. If i add another cache control header to the header it gets overwritten by .htaccess or other methods end up having two lots of cache headers.

so i tried creating a new file extenion type and handler in php and renaming the static php file static.sphp but couldnt get it work in plesk after spending a which tinkering.

What else can i do to server a static file?
Here you can see the problem when hovering over the stars, the ratingsystem.php and retailer.php static files get called by jquery code.
 
Back
Top