If this is your first visit, check our documentation. To post, register or login.

Vary header

Started by dml73 on 26 Jan 2026, 4:31 PM · Views: 652

Results 1 to 3 of 3
26 Jan 2026, 4:31 PM
#1
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Post #1 by dml73

Bootstrap 3.7.7-beta1
PHP Version: 8.4.10

I'm using Cloudflare and they are telling me that for their png/jpg - webp image conversion function to work the only accepted Vary header is:

Vary: Accept-encoding

Is this possible / safe to set? and if, how would I do that?

27 Jan 2026, 11:56 AM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,337
Plugin Contributions:
41

Post #2 by mprough

DML73:

Bootstrap 3.7.7-beta1
PHP Version: 8.4.10

I'm using Cloudflare and they are telling me that for their png/jpg - webp image conversion function to work the only accepted Vary header is:

Vary: Accept-encoding

Is this possible / safe to set? and if, how would I do that?

It is the PCI/DSS best practice =)

27 Jan 2026, 1:04 PM
#3
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Post #3 by dml73

I just found out that I needed to disable server-side cacheing in my host, once I did that, Cloudflare png/jpg to webp conversion started working.