dcrdata icon indicating copy to clipboard operation
dcrdata copied to clipboard

Last-Modified and ETag headers especially in mempool responses

Open chappjc opened this issue 8 years ago • 4 comments
trafficstars

Also support the If-None-Match and If-Modified-Since request headers, so the client can receive a 304 instead of the old data, saving everyone compute resources and bandwidth.

chappjc avatar Mar 20 '17 00:03 chappjc

Also, Cache-Control:private Expires is not likely to be useful except perhaps for mempool. Conditional requests are likely to be of more use:

  • content based w/ ETag response header and If-None-Match request header
  • time based w/ Last-Modified response header and If-Modified-Since request header

In these cases, a 304 code and an empty body are returned to indicate to the client to use their cache.

chappjc avatar Aug 21 '17 03:08 chappjc

Hi @chappjc I have replicated this from my end. That GETs return 200 even with non-changed content. Can I pick this up? Thanks

njirap avatar Jan 10 '19 09:01 njirap

Yes, please do, @njirap. Although please draft an informal but detailed ConOps describing the specific goals and intended use case for the solution you come up with.

chappjc avatar Jan 10 '19 20:01 chappjc

Ok let me work on that. Thanks.

njirap avatar Jan 11 '19 08:01 njirap