.htaccess Datei für Ablaufdatum der ttf-Datei optimieren

  • Hallo an alle!

    Habe ein kleinen Problem und hoffe auf eure Hilfe.

    Bin gerade dabei meine Webseite in Bereich "Ladegeschwindigkeit" Unterpunk "Browser-Caching nutzen" zu optimieren. Meine .htaccess Datei sieht aktuell so aus:

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif "access plus 7 days"
    ExpiresByType image/ico "access plus 7 days"
    ExpiresByType image/jpeg "access plus 7 days"
    ExpiresByType image/jpg "access plus 7 days"
    ExpiresByType image/png "access plus 7 days"
    ExpiresByType text/css "access plus 7 days"
    ExpiresByType text/javascript "access plus 7 days"
    ExpiresByType application/x-javascript "access plus 7 days"
    ExpiresByType application/javascript "access plus 7 days"
    </IfModule>
    <IfModule mod_deflate.c>
    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/atom_xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-shockwave-flash
    </IfModule>


    Leider meckert Google immer noch bei 3 Sachen bei mir:.../index_html_files/calibri.ttf (Ablaufdatum nicht festgelegt)
    .../index_html_files/calibrib.ttf (Ablaufdatum nicht festgelegt)
    http://www.magix.info/ref.php?lng=de…4e15d234cc624ae (2 Stunden)


    Hat jemand ein Tipp für mich, wie ich die .htaccess Datei ergänzen muss um auch diese 3 Punke anzusprechen?

    Danke im Voraus!

    mfg Eugen

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Hallo Eugen,

    hier ein Auszug aus meiner .htaccess

    # Add correct content-type for fonts
    AddType font/ttf .ttf
    AddType font/woff .woff

    # Deflate Compression by FileType
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE font/ttf

  • Hallo Gerd-E.,

    Danke für deine Hilfe! Ich habe meine .htaccess Datei entsprechend ergänzt und die Fehler mit ttf-Datei sind jetzt weg. Super! Noch mal vielen Dank!

    jetzt hat Google nur bei einem Punkt zu meckern:
    [COLOR=#00303e]http://www.google-analytics.com/analytics.js[/COLOR] (2 Stunden)

    Hast du eine Idee, wie und ob man auch diesen Punkt optimieren kann?

    mfg. Eugen

  • das mit dem analytics wirst du nicht wegbekommen, da es ja eine externe Quelle ist.

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!