In the HTTP response header for my website it is returning a header that contains the following value.
"Cache-Control: max-age=3600"
Is 3600 in seconds or minutes?
max-age. The max-age directive states the maximum amount of time in seconds that fetched responses are allowed to be used again (from the time when a request is made). For instance, max-age=90 indicates that an asset can be reused (remains in the browser cache) for the next 90 seconds.
It's in seconds, so the value you quoted corresponds to 1 hour.
Max-age greater than 31536000 (one year) makes little sense, and informally this is considered a reasonable maximum value.
Cache-control is an HTTP header used to specify browser caching policies in both client requests and server responses. Policies include how a resource is cached, where it's cached and its maximum age before expiring (i.e., time to live).
delta seconds. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3
max-age
Indicates that the client is willing to accept a response whose age is no greater than the specified time in seconds...
It's in seconds, so the value you quoted corresponds to 1 hour.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With