i am implementing following solution for cache problem: How to force browser to reload cached CSS/JS files?
but browser not able to found my css file after change it's name. when i manually goes to open it, it gives 404 error.
here is my complete .htaccess code:
RewriteEngine on
RewriteBase /App
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]
RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L]
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
My css file path is: /assets/master.css
basically what i want to do is dynamically rewrite all css & js files like this: master.1454667174.css to this: master.css
i want server to ignore that 10 digit number before file extension and return only master.css file to browser.
Please help..