No bug Caching webp images
- Kamar Khan
-
Topic Author
- Offline
Less
More
- Posts: 1
- Thank you received: 0
1 year 8 months ago #2573
by Kamar Khan
Caching webp images was created by 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?
Please Log in to join the conversation.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1700
- Thank you received: 110
1 year 8 months ago - 1 year 8 months ago #2579
by Ruud van Lent
Replied by Ruud van Lent on 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.
Last edit: 1 year 8 months ago by Ruud van Lent.
Please Log in to join the conversation.