خرید بک لینک

Hi Pothi!

Thanks for your reply! it does help.

After testing the entire example config, the results were pretty bad (putting the entire code with no modification). I still had 50% on PageSpeed Insights.

I did some research and put together a few statements that got me up to to 73%. That's the best I could do.

I am attaching here the code I am using in case of any Idea or if it could be useful to someone.

Thanks for your help and have a good one.

***PLEASE BARE IN MIND I KNOW NOTHING - THIS WAS JUST TRIAL AND ERROR :-)***

.httaccess BEFORE "# BEGIN WordPress":

## EXPIRES CACHING ##

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 text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"

## EXPIRES CACHING ##

## Cache One year for image files ###

# One year for image files
<filesMatch ".(jpg|jpeg|png|gif|ico)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
# One month for css and js
<filesMatch ".(css|js)$">
Header set Cache-Control "max-age=2628000, public"
</filesMatch>

## Defer parsing of JavaScript ##

<FilesMatch ".css$">
SetHandler application/x-httpd-php
Header set Content-type "text/css"
</FilesMatch>

<FilesMatch ".js$">
SetHandler application/x-httpd-php
Header set Content-type "application/javascript"
</FilesMatch>

### Cache GZIP Compression ##

## Mod DEFLATE ##

<IfModule mod_deflate.c>
<filesMatch ".(js|css|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css 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

</IfModule>

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 12 مرداد 1395 ساعت: 1:12

صفحه بندی