CloudPanel version(s) affected
v2.5.3
Description
Hello,
AVIF image files do not receive the expires max header that other image formats like WebP and JPG.
How to reproduce
View expires values in browser dev tools. This was also flagged by Page Speed.
Possible Solution
Add avif to the file types list in the vhost:
location ~* ^.+\.(avif|css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
# WordPress Multisite Subdirectory
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 break;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 break;
add_header Access-Control-Allow-Origin "*";
expires max;
access_log off;
}
Additional Context
No response
CloudPanel version(s) affected
v2.5.3
Description
Hello,
AVIF image files do not receive the expires max header that other image formats like WebP and JPG.
How to reproduce
View expires values in browser dev tools. This was also flagged by Page Speed.
Possible Solution
Add avif to the file types list in the vhost:
Additional Context
No response