Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Store all HTTP headers or only used ones?

http cache caching

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 porton

porton

    CC Lurker

  • New Member
  • Pip
  • 4 posts

Posted 14 November 2016 - 03:41 PM

I write a Web cache to be used with GitHub and BitBucket API (support of
more APIs may be added in the future). I need to store Link: headers in the
cache because in GitHub they are used for pagination. Should I store in the
cache **all** HTTP headers or only Link ones?

(note that I currently store response body and status)

Non-Link headers are not needed, but it may break future compatibility.
What's your advice?