PageSpeed Insights - How compress all js and css file in wordpress website? -
i test wordpress website via "pagespeed insights" , can't fix: "compressing resources gzip or deflate can reduce number of bytes sent on network."
.htaccess
## expires caching ## <ifmodule mod_expires.c> expiresactive on expiresbytype image/jpg "access 1 year" expiresbytype image/jpeg "access 1 year" expiresbytype image/gif "access 1 year" expiresbytype image/png "access 1 year" expiresbytype text/css "access 1 month" expiresbytype application/pdf "access 1 month" expiresbytype application/javascript "access 1 month" expiresbytype application/x-javascript "access 1 month" expiresbytype application/x-shockwave-flash "access 1 month" expiresbytype image/x-icon "access 1 year" expiresdefault "access 2 days" </ifmodule> ## expires caching ## <ifmodule mod_gzip.c> mod_gzip_on yes mod_gzip_dechunk yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^content-encoding:.*gzip.* </ifmodule>
when try check if gzip enabled, these website tells enabled.
how compress js , css file in wordpress website?
Comments
Post a Comment