By gilsoninacio
Can anyone help (Compress All content/Caching) from my blog so that it becomes lighter? see this: http://postimg.org/image/re8y8v7en/ http://postimg.org/image/6g2sas7jz/ in my old hosting had an option to optimize blog and though I requested the Digital Ocean, they sent me a code below and asked to copy and paste, but not works (.htaccess but not worked). If anyone can help. Thank you.
This code below nnot Woks…
ExpiresActive On ExpiresByType image/jpg “access plus 1 year” ExpiresByType image/jpeg “access plus 1 year” ExpiresByType image/gif “access plus 1 year” ExpiresByType image/png “access plus 1 year” ExpiresByType text/css “access plus 1 month” ExpiresByType application/pdf “access plus 1 month” ExpiresByType text/x-javascript “access plus 1 month” ExpiresByType application/x-shockwave-flash “access plus 1 month” ExpiresByType image/x-icon “access plus 1 year” ExpiresByType application/javascript “access plus 1 month” ExpiresDefault “access plus 2 days”
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
BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
@Woet thanks. I do not know which path, can detail please? See my log…
[Wed May 06 00:23:25.223053 2015] [core:alert] [pid 5223] [client 66.102.8.173:47328] /var/www/.htaccess: Invalid command ‘ExpiresActive’, perhaps misspelled or define$ [Wed May 06 00:23:25.952712 2015] [core:alert] [pid 5222] [client 66.102.8.173:48351] /var/www/.htaccess: Invalid command ‘ExpiresActive’, perhaps misspelled or define$ [Wed May 06 00:23:44.875065 2015] [core:alert] [pid 5224] [client 66.249.69.35:42475] /var/www/.htaccess: Invalid command ‘ExpiresActive’, perhaps misspelled or define$ [Wed May 06 00:23:45.875695 2015] [core:alert] [pid 5226] [client 66.249.69.19:38849] /var/www/.htaccess: Invalid command ‘ExpiresActive’, perhaps misspelled or define$ [Wed May 06 00:25:21.909598 2015] [core:alert] [pid 5225] [client 179.197.52.13:56976] /var/www/.htaccess: Invalid command ‘ExpiresActive’, perhaps misspelled or defin$ [Wed May 06 00:31:15.727432 2015] [core:alert] [pid 5222] [client 66.249.83.177:61275] /var/www/.htaccess: Invalid command ‘ExpiresActive’, perhaps misspelled or defin$
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.