• 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.

Issue nginx caching not working with apache RewriteRule and flag [last]?

Azurel

Silver Pleskian
I have set in apache and nginx a expired one year. That's working. I can see one year for "expires" in header. Now I want access few file-types with a rewrite (without redirect)

Code:
RewriteRule fake/(.+\.(?:js|php))$ original/$1 [L]

That RewriteRule is working. I can access this files, but the "expires" header in "fake/file.js" is gone. What am I doing wrong?

example.com/original/file.js = expires in one year
example.com/fake/file.js = no header for expires
 
Back
Top