Jump to content

Prestashop Tarayıcı önbellekleme özelliğinden yararlanın Speedpage


avmsepet

Recommended Posts

Merhaba,

 

Google Pagespeed üzerinde site analizi yaptım. Karşıma konu başlığındaki uyarı geldi.

 

Araştırdım. Bulduğum kodu sayfanın .htaccess bölümüne yerleştirdim.

 

Sayfanın hızlanması mümkün mü?

 

Prestashop içerisinde farklı bir kod kullanılıyor olabilir mi?

 

Konu hakkında size ileteceğim detayları inceleyip bilgi vermeniz konusunda destek beklemekteyim.

 

https://developers.google.com/speed/pagespeed/insights/?hl=tr

 

1. bölümdeki Expires caching olan kodu ekledim.

 

Fakat google tarafında bir hızlanma olabilir mi?

 

Prestashop kendisi cache kullanıyor fakat yavaş yani bir etkisini göremedik. O yüzden aşağıdaki kodu kullanıyorum.

 

Bu tarz bir işlem için kendisine hazırlık yapanlar konu altında kodlama ile ilgili detay iletirse güzel olur.

 

Teşekkürler.

## EXPIRES CACHING ##
<IfModule mod_expires.c>
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"
ExpiresDefault "access plus 7 days"
</IfModule>
## EXPIRES CACHING ##

Aşağıdaki kod ve yukarıdaki gördüğünüz gibi toplamda iki kod buldum sayfalarda,

<ifmodule mod_expires.c>
<filesmatch "\.(jpg|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
</ifmodule>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...