Setting "Vary: Accept-Encoding" header using .htaccess

#1
In .htaccess file, I have:

Header set Vary Accept-Encoding

(as recommended by google chrome - options - javascript console - pagespeed)

But 2 "vary" headers are returned ("set" should set the header, not add a new one)

I've tried 'unset Header', but that doesnt work either

Andrew


GET http://www.walkingclub.org.uk
User-Agent: Mozilla

200 OK
Cache-Control: public, max-age=3600
Connection: close
Date: Fri, 15 May 2015 16:37:54 GMT
Server: LiteSpeed
Vary: User-Agent
Vary: Accept-Encoding
Content-Type: text/html; charset=utf-8
Expires: Fri, 15 May 2015 17:37:54 GMT
Client-Date: Fri, 15 May 2015 16:37:53 GMT
Client-Peer: 96.8.123.158:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
 
#3
current litespeed version is 4.2.2

tried
Header append

but stil get 2 headers

according to the apache doco
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/javascript text/css

sets the "Vary: User-Agent" header

i want to replace than with "Vary: Accept-Encoding"

i've tried
header set,
header unset, folowed by header set
header append

but none seem to work
 
#5
expires:
Sun, 13 Sep 2020 04:21:37 GMT
pragma:
no-cache
server:
LiteSpeed
set-cookie:
grav-site-11fe75b=a3n6m34s4fijps1mla8a4j7q5h; expires=Sun, 06-Sep-2020 04:51:36 GMT; Max-Age=1800; path=/; domain=XXXX.com; HttpOnly
status:
200
vary:
Accept-Encoding
x-powered-by:
PHP/7.4.10


How to know cache hit or miss? How to enabled that tag?
 
Top