Ashok Kumar Nath on "[Plugin: W3 Total Cache] Settings Option Not Available"

ساخت وبلاگ

Hello usafreebiesdaily

For leverage browser caching, you can add the following in your 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 text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##

Here is a good article for this: https://varvy.com/pagespeed/leverage-browser-caching.html

For smush image, you can try WP Smush IT: https://wordpress.org/plugins/wp-smushit/

You can enable compression by putting the following in your htaccess:

<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>

Article: https://varvy.com/pagespeed/enable-compression.html

You can try Autoptimize to to minify css and js: https://wordpress.org/plugins/autoptimize/

But still it's better to discuss with your host about which plugins you can use or not, there are some differences if your server is nginx and not run by apache. So the host should be the best to suggest in this scenario.

Hope it helps :) Please feel free to ask more question if you have any.

Cheers
Ash

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 338 تاريخ : دوشنبه 11 مرداد 1395 ساعت: 2:08