• 26-07-2021, 23:40:28
    #1
    İyi akşamlar,

    Google Cache ile bir sorun var ama anlayamadım, olayı çözebilecek olurmu belki diye sorayım dedim.

    bi süre önce sayfa hızını artırmak için bir düzenleme yaptık. Hız arttı yalnız o günden beri google sayfaları düzgün Cache yapmıyor (öncesinde yapıyordu). Sayfa css i ni okumuyor. Sadece yazılar resimler bozuk şekilde cache yapıyor. Htaccess te eklenen kodlar şöyle: bu kodlardan hangisi sebep olmuş olabilir?

    <FilesMatch ".(webm|ogg|mp4|ico|pdf|flv|jpg|jpeg|png|gif|webp| js|css|swf|x-html|css|xml|js|woff|woff2|otf|ttf|svg|eot)(.gz)?$ ">
    <IfModule mod_expires.c>
    AddType application/font-woff2 .woff2
    AddType application/x-font-opentype .otf
    ExpiresActive On
    ExpiresDefault A0
    ExpiresByType video/webm A10368000
    ExpiresByType video/ogg A10368000
    ExpiresByType video/mp4 A10368000
    ExpiresByType image/webp A10368000
    ExpiresByType image/gif A10368000
    ExpiresByType image/png A10368000
    ExpiresByType image/jpg A10368000
    ExpiresByType image/jpeg A10368000
    ExpiresByType image/ico A10368000
    ExpiresByType image/svg+xml A10368000
    ExpiresByType text/css A10368000
    ExpiresByType text/javascript A10368000
    ExpiresByType application/javascript A10368000
    ExpiresByType application/x-javascript A10368000
    ExpiresByType application/font-woff2 A10368000
    ExpiresByType application/x-font-opentype A10368000
    ExpiresByType application/x-font-truetype A10368000
    </IfModule>
    <IfModule mod_headers.c>
    Header set Expires "max-age=A10368000, public"
    Header unset ETag
    Header set Connection keep-alive
    FileETag None
    </IfModule>
    </FilesMatch>

    <IfModule mod_deflate.c>
    AddType x-font/woff .woff
    AddType x-font/ttf .ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE x-font/ttf
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
    </IfModule>

    # BEGIN Expire headers
    <ifModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 5 seconds"
    ExpiresByType image/x-icon "access plus 2592000 seconds"
    ExpiresByType image/jpeg "access plus 2592000 seconds"
    ExpiresByType image/png "access plus 2592000 seconds"
    ExpiresByType image/gif "access plus 2592000 seconds"
    ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
    ExpiresByType text/css "access plus 604800 seconds"
    ExpiresByType text/javascript "access plus 216000 seconds"
    ExpiresByType application/javascript "access plus 216000 seconds"
    ExpiresByType application/x-javascript "access plus 216000 seconds"
    ExpiresByType text/html "access plus 600 seconds"
    ExpiresByType application/xhtml+xml "access plus 600 seconds"
    </ifModule>
    # END Expire headers

    <ifModule mod_headers.c>
    <filesMatch ".(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "public"
    </filesMatch>
    <filesMatch ".(css)$">
    Header set Cache-Control "public"
    </filesMatch>
    <filesMatch ".(js)$">
    Header set Cache-Control "private"
    </filesMatch>
    <filesMatch ".(x?html?|php)$">
    Header set Cache-Control "private, must-revalidate"
    </filesMatch>
    </ifModule>
  • 27-07-2021, 00:59:36
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Nereden anlıyorsunuz hocam düzgün google cache yapmamasını nereden bakıyorsunuz?
  • 27-07-2021, 02:15:54
    #3
    Kirkbir adlı üyeden alıntı: mesajı görüntüle
    Nereden anlıyorsunuz hocam düzgün google cache yapmamasını nereden bakıyorsunuz?
    adrese Cache:https://www.SITENINDOMAINADI.com yazıp girerek
  • 27-07-2021, 11:50:30
    #4
    Üyeliği durduruldu
    kchmt1 adlı üyeden alıntı: mesajı görüntüle
    adrese Cache:https://www.SITENINDOMAINADI.com yazıp girerek
    Hocam cache eklentisi kullanıyorsanız ondan dolayı olabilir bende de bakınca görünüm bozulmuş gözüküyor ama bir sorun teşkil etmiyor sıralama için filan galiba cache eklentileri nedeniyle css ve js kodlarını okumuyor.
  • 28-07-2021, 02:35:51
    #5
    Hocam biz de CND kullanıyoruz resimleri bazen görmüyor bir problem çıkmıyor içiniz rahat olsun.
  • 28-07-2021, 02:45:27
    #6
    Değişikliği yeni yaptıysanız css dosyalarının yolu değişmiştir (cache eklentileri yeniden oluşturur birleştirir) Bu yüzden bozuk görünüyordur. Zamanla düzelir.