I am trying to build a regular expression in apache which match with all files with extensions as .html, .css, .js, .jpg, etc... except it the url has the word "nocache"
I have read other entries in stackoverflow, and I've create the following regular expresion
<FilesMatch "^(.*(?!nocache)\.(png|bmp|jpg|gif|html|htm|css|js|ttf|svg|woff|txt))$">
ExpiresActive on
ExpiresDefault "now plus 1 month"
</FilesMatch>
The problem is that this regular expression is not working fine. All files with extensions are being cached, but the file with the word "nocache" is being cached too.
Does someone see what is the problem?