• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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