Tomek Frankiewicz

Is caching on Akamai impacted by Vary header?

Blog Post created by Tomek Frankiewicz Employee on Sep 16, 2015

Recently I was asked with that question and I'd like to share answer since it might be very useful for anybody who'd like to increase offload, or just ensure that caching works as expected.

 

Akamai will cache the content only if Vary header has value "Accept-Encoding".

Vary: Accept-Encoding

Any other values won't be cached. Examples:

Vary: Accept-Encoding,Referer

Vary: Accept-Encoding,User-Agent

Vary: User-Agent

I hope you will find this useful.

--

Tomasz

Outcomes