arenanet / api-cdi

Collaborative Development Initiative for Public APIs
252 stars 41 forks source link

render.guildwars2.com images not being cached due to malformed header #651

Open BenLubar opened 5 years ago

BenLubar commented 5 years ago

The header sent by the server is cache-control: "public, max-age=604800".

This means that the header has exactly one value and that it is public, max-age=604800, which is not a valid cache-control header value.

If you remove the quotes, it will parse as two separate (and valid) cache-control headers, giving the intended public (shared proxies can cache) and max-age=604800 (cache for a week) properties.