W
W
weranda2018-02-09 11:39:28
caching
weranda, 2018-02-09 11:39:28

Should I use the Expires and Cache-Control HTTP headers at the same time?

Hello
Should I use the Expires and Cache-Control HTTP headers at the same time? As I understand it, if there is a cache-control (public, max-age = 2592000), then expires (in a month) is not required - is it? Or is it still worth it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2018-02-10
@opium

https://www.mnot.net/cache_docs/#EXPIRES
in general, it is recommended to use expires for statics, and cache control if you need some particularly tricky cache stuff

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question