• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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