Performance headers in htaccess

Voor een optimale werking van je website adviseren we de volgende headers op te nemen in het htaccess bestand:

<IfModule mod_expires.c>
   ExpiresActive On

   # Images
   ExpiresByType image/jpeg "access plus 1 year"
   ExpiresByType image/gif "access plus 1 year"
   ExpiresByType image/png "access plus 1 year"
   ExpiresByType image/webp "access plus 1 year"
   ExpiresByType image/svg+xml "access plus 1 year"
   ExpiresByType image/x-icon "access plus 1 year"

   # Video
   ExpiresByType video/mp4 "access plus 1 year"
   ExpiresByType video/mpeg "access plus 1 year"

   # CSS, JavaScript
   ExpiresByType text/css "access plus 1 month"
   ExpiresByType text/javascript "access plus 1 month"
   ExpiresByType application/javascript "access plus 1 month"

   # Others
   ExpiresByType application/pdf "access plus 1 month"
   ExpiresByType application/x-shockwave-flash "access plus 1 month"

   # WOFF en WOFF2 Fonts: 1 jaar cachen
    ExpiresByType font/woff "access plus 1 year"
    ExpiresByType font/woff2 "access plus 1 year"
    
    # Fallback voor oudere mime-type definities (voor de zekerheid)
    ExpiresByType application/font-woff "access plus 1 year"
    ExpiresByType application/x-font-woff "access plus 1 year"
    ExpiresByType application/font-woff2 "access plus 1 year"
 </IfModule>

WordPress artikelen

We helpen je graag verder

De heren van realiseerden in 30 jaar al honderden maatwerk WordPress websites. Van eenvoudige startups tot complexe beveiligde platforms. Wat kunnen we voor jou realiseren?

Alle artikelen

Logo De Heren Van

Buntlaan 16 3971 JD
Driebergen-Rijsenburg
+31(0) 343 – 520 350
support@deherenvan.nl

KvK 34653665
BTW 3456345634