Does angulars $resource support etags?

603 Views Asked by At

I'm seeing contradicting answers https://stackoverflow.com/a/25004605/4642530 and https://stackoverflow.com/a/29067231 and the docs don't mention if they support it or how to handle etag if not. Anyone know?

1

There are 1 best solutions below

1
On

Yes, those answers are contradictory... However, besides that lone SO answer, I can find no evidence that $resource automatically tracks/sends ETags (the "If-None-Match") header.

I think the clearest evidence is that searching the source for ngResource shows no mention of the "If-None-Match" header, nor the string "ETags".