Last active
October 23, 2015 11:27
-
-
Save ZiTAL/74613c805d90accf2e4d to your computer and use it in GitHub Desktop.
apache rewrite: caching resources with pretty urls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /resources/js/example.js/123456/ -> /resources/js/example.js | |
# /resources/css/example.css/123456/ -> /resources/css/example.css | |
RewriteRule ^(.+\.)(js|css)/\d+/?$ /$1$2 [NC,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment