steveosoule
2/1/2016 - 9:12 PM

Remove Query Strings From Static Resources To Improve Page Speed

Remove Query Strings From Static Resources To Improve Page Speed

# Allow Versions in file names to avoid using query strings
RewriteCond %{REQUEST_URI} (.*)\.\d+\.(css|js)$
RewriteRule ^(.*)$ %1.%2 [L]

# This allows for:
# /css/styles.min.1234567890.css
# /js/scripts.1234567890.js