Error codes: rewrites_cached

SYSTEM INFORMATION
OS type and version ubuntu 24.04
Webmin version 2.630
Virtualmin version 8.1.0 GPL
Webserver version Apache 2.4.58
Related packages PHP8.5, GD en Imagick

Wordpress sites , converter for media plugins error, Cloudflare CDN

Server configuration error

It appears that your server uses the cache for HTTP requests. The rules from the .htaccess file or from the Nginx configuration are not executed every time when an image is loaded, but the last redirect from cache is performed.

Please, contact your hosting’s technical support or CDN’s support and send them the following message: I have a problem with the cache for HTTP requests on my website - https://xxx This prevents JPEG or PNG files from being dynamically redirected to WebP or AVIF, depending on whether the browser supports the format. Here are potential sources of this issue:

  • the server or CDN server does not support the “Vary: Accept” HTTP header or handles it incorrectly (the cache for redirects should be based not only on the URL to the file, but also on the value of the Accept header sent by the browser)
  • the server or CDN server does not support the “Cache-Control: private” HTTP header or handles it incorrectly (this header should be able to disable caching for static files on the CDN server or proxy server)

Read articles . Changed in Apache2.conf

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All (this was none)
Require all granted

Restarted Apache

Still the same error.

Tried with other PHP versions, no result.

We changed from Directadmin to Virtualmin.
On Directadmin websites worked fine.
So it has nothing to do with the websites - plugins or Cloudflare.

It must be a setting in Ubuntu / Virtualmin.

Ideas ?