No bug Caching webp images
- Kamar Khan
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 1
- Ontvangen bedankjes 0
1 jaar 11 maanden geleden #2573
door Kamar Khan
Caching webp images werd gestart door Kamar Khan
Hi Rudd,
Good day. Is there any way i can cache webp images. Gtmatrix and pagespeed always saying to cache webp images. Any suggestion?
Good day. Is there any way i can cache webp images. Gtmatrix and pagespeed always saying to cache webp images. Any suggestion?
Graag Inloggen deelnemen aan het gesprek.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1715
- Ontvangen bedankjes 111
1 jaar 11 maanden geleden - 1 jaar 11 maanden geleden #2579
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Caching webp images
Hi Kamar,
thanks for reaching out.To cache WebP images, you can use HTTP caching headers like Cache-Control and Expires. You can set these headers on your web server or use a Content Delivery Network (CDN) that supports caching.For Apache, you can use the mod_expires module to set caching headers:the code below you can use as an example for how to add this header for webp images
Hope this helps, if not feel free to follow up.
regards,
Ruud.
thanks for reaching out.To cache WebP images, you can use HTTP caching headers like Cache-Control and Expires. You can set these headers on your web server or use a Content Delivery Network (CDN) that supports caching.For Apache, you can use the mod_expires module to set caching headers:the code below you can use as an example for how to add this header for webp images
Code:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/webp "access plus 1 year"
</IfModule>
Hope this helps, if not feel free to follow up.
regards,
Ruud.
Laatst bewerkt 1 jaar 11 maanden geleden doorRuud van Lent.
Graag Inloggen deelnemen aan het gesprek.