trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reindl Harald <h.rei...@thelounge.net>
Subject Re: Cache alternates
Date Mon, 08 Oct 2012 18:11:45 GMT


Am 08.10.2012 19:57, schrieb Deve Loper:
> When the User-Agent varies it is saved again in disk.
> Is there any possibility of eliminating it?

yes, simply eliminate it on the ORIGIN-server

you probably did not understand the meaning of "vary" in the contect
HTTP-Header of the origin-server

Vary: User-Agent
do not send it if you do not want

<IfModule mod_headers.c>
 Header append Vary User-Agent
 <FilesMatch
"\.(gif|jpe?g|png|css|js|ico|flv|mp4|m4v|wmv|mov|mpg|ogv|webm|mp3|wav|ogg|oga|swf|doc|docx|xls|xlsx|pdf)$">
  Header unset Vary
 </FilesMatch>
 <FilesMatch "\.(css|js|htc|wav|doc|docx|xls|xlsx|pdf)$">
  Header set Vary "Accept-Encoding"
 </FilesMatch>
</IfModule>




Mime
View raw message