Itai Hanski
Itai Hanski

Reputation: 8680

Will an HTTP HEAD request ever be cached by phone / browser

Lets say I have a file on a server with cache-headers indicating it should be cached. Will the response of a HEAD request to that file be cached as well?

Upvotes: 3

Views: 1650

Answers (1)

CodeCaster
CodeCaster

Reputation: 151604

RFC 2616, 9.4 HEAD:

The response to a HEAD request MAY be cacheable in the sense that the information contained in the response MAY be used to update a previously cached entity from that resource.

It doesn't really make sense to cache the response to a HEAD request itself, as it contains no entity.

Upvotes: 3

Related Questions