Ankündigung

Einklappen
Keine Ankündigung bisher.

Leverage browser caching

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Leverage browser caching

    Hallo zusammen,

    über gtmetrix habe ich meine Seite analysieren lassen.
    Dort tauchen u.a. folgende Einträge auf:

    https://www.domain.de/plugins/system...otstrap.min.js (2 days 12 hours)
    https://www.domain.de/plugins/system...cybox-1.3.4.js (2 days 12 hours)
    https://www.domain.de/plugins/system...-3.0.4.pack.js (2 days 12 hours)
    https://www.domain.de/plugins/system...crollReveal.js (2 days 12 hours)
    https://www.domain.de/plugins/system....noconflict.js (2 days 12 hours)
    https://www.domain.de/templates/them...isotope.min.js (2 days 12 hours)
    https://www.domain.de/templates/themes/js/scripts.js (2 days 12 hours)
    https://www.domain.de/templates/them...uch.gallery.js (2 days 12 hours)

    in der .htaccess habe ich folgendes:

    Code:
    #Cache aktiveren und Daten ein Jahr vorhalten
    <IfModule mod_expires.c>
        ExpiresDefault "now plus 2 hour"
        # CSS and JS expiration
        ExpiresByType text/css "now plus 1 month"
        ExpiresByType application/javascript "now plus 1 month"
        ExpiresByType application/x-javascript "now plus 1 month"
         
        # Image files expiration
        ExpiresByType image/bmp "access plus 1 year"
        ExpiresByType image/gif "access plus 1 year"
        ExpiresByType image/jpeg "access plus 1 year"
        ExpiresByType image/jp2 "access plus 1 year"
        ExpiresByType image/pipeg "access plus 1 year"
        ExpiresByType image/png "access plus 1 year"
        ExpiresByType image/PNG "access plus 1 year"
        ExpiresByType image/svg+xml "access plus 1 year"
        ExpiresByType image/tiff "access plus 1 year"
        ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
        ExpiresByType image/x-icon "access plus 1 year"
        ExpiresByType image/ico "access plus 1 year"
        ExpiresByType image/icon "access plus 1 year"
        ExpiresByType text/ico "access plus 1 year"
        ExpiresByType application/ico "access plus 1 year"
        ExpiresByType image/vnd.wap.wbmp "access plus 1 year"
        ExpiresByType application/vnd.wap.wbxml "access plus 1 year"
         
        ExpiresByType application/smil "access plus 1 year"
        # Audio files expiration
        ExpiresByType audio/basic "access plus 1 year"
        ExpiresByType audio/mid "access plus 1 year"
        ExpiresByType audio/midi "access plus 1 year"
        ExpiresByType audio/mpeg "access plus 1 year"
        ExpiresByType audio/x-aiff "access plus 1 year"
        ExpiresByType audio/x-mpegurl "access plus 1 year"
        ExpiresByType audio/x-pn-realaudio "access plus 1 year"
        ExpiresByType audio/x-wav "access plus 1 year"
         
        # Movie files expiration
        ExpiresByType application/x-shockwave-flash "access plus 1 year"
        ExpiresByType x-world/x-vrml "access plus 1 year"
        ExpiresByType video/x-msvideo "access plus 1 year"
        ExpiresByType video/mpeg "access plus 1 year"
        ExpiresByType video/mp4 "access plus 1 year"
        ExpiresByType video/quicktime "access plus 1 year"
        ExpiresByType video/x-la-asf "access plus 1 year"
        ExpiresByType video/x-ms-asf "access plus 1 year"
    </IfModule>
    Cache etc. habe ich bereits gelöscht aber trotzdem werden die Files angemerkt. Hat jemand einen Tipp?
    Gruß
    HCA
    Gruß

    HCA

  • #2
    Dieses Verhalten habe ich auch schon auf einen meiner Server beobachtet und glaube dass es an mod_pagespeed liegt, dass sich der Cache-Control so verhält.

    Kommentar


    • #3
      Schau mal ob die JS-Files nicht vllt. als als "text/javascript" ausgeliefert werden.

      Grüße.

      Kommentar


      • #4
        Ist das deine ganze .htaccess-Datei oder machst du auch noch andere Sachen? Z.B. sowas hier?
        Code:
        # BEGIN Turn ETags Off
        <ifModule mod_headers.c>
          Header unset ETag
        </ifModule>
        FileETag None
        # END Turn ETags Off
        
        # BEGIN Remove Last-Modified Header
        <ifModule mod_headers.c>
          Header unset Last-Modified
        </ifModule>
        # END Remove Last-Modified Header
        Falls dem so ist, nehm mal den unset von Last-Modified raus und teste noch mal.
        Tutorials zum Thema Technik:
        https://pilabor.com
        https://www.fynder.de

        Kommentar

        Lädt...
        X