How do you use the ResponseCacheControl URL parameter in Amazon?

Viewed 171

According to the Amazon S3 documentation, there is a query parameter called ResponseCacheControl that can be added to an S3 URL so that the response includes a Cache-Control header, which I need so that my browser will cache the response i.e I need it to return with

Cache-Control: max-age=100

However, the notoriously terrible Amazon S3 docs don't give any information on how to use this parameter!

Does anyone know, what value do I give it to get back the response with the desired header?

1 Answers

To use max-age, you need to URL encode it.

response-cache-control=max-age%3D100
Related