Great Plugin to avoid hitting ctrl+f5 after every change in css and js file
-
I was looking for something like Laravel’s Elixir Cache bursting solution and found this plugin. Works great.
To use this in nginx, add below line inside the server block of your site’s nginx configuration
# Support for Filename-based asset cache busting Plugin location ~* \.(?:css|js)$ { if (!-e $request_filename){ rewrite ^/(.+)\.([0-9\.]+)\.(js|css)$ /$1.$3 break; } }
The topic ‘Great Plugin to avoid hitting ctrl+f5 after every change in css and js file’ is closed to new replies.