Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # If you're grading C or less in Yahoo Yslow*, you can upgrade your score in about ten points using the following htaccess code
- # ( *install the Firefox or Chrome extension to run a performance test on the page you're viewing )
- #
- # INSTRUCTIONS
- # 1. Use a FTP client and download a copy of the file .htaccess located at the root of your site
- # 2. files starting with a dot are invisible, so make sure your client has the option "Show invisibles" active
- # 3. after downloading you're not gonna see the file using Windows Explorer or Mac Finder
- # 4. use the FTP client to rename your local copy (right clicking and selecting "Rename")
- # 5. after this the file is visible in your system and you can edit it with a text editor (**not MS Word**)
- # 6. paste the code bellow after the line that contains "#END WordPress"
- # 7. upload to your server (without the dot, so you not overwrite the original)
- # 8. in the server, rename the original to something else (f.ex.: htaccess-backup)
- # 9. rename the new one and add a dot at the beginning
- # 10. in case of any problems, delete the new one and rename the old one back
- #
- # COPY THE CODE BELOW
- #
- <Files *.css>
- SetOutputFilter DEFLATE
- </Files>
- <Files *.js>
- SetOutputFilter DEFLATE
- </Files>
- Header unset ETag
- FileETag None
- #Expire Header
- <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
- Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
- </FilesMatch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement