Andrew Stewart Gibson
Andrew Stewart Gibson
For most cases, it would probably be sufficient to query your database by url and method, then run each of the matching CachePolicies through our matching function to determine whether...
Preliminary work: Identify strong and/or weak validators for a response: https://github.com/goofballLogic/http-cache-semantics/commit/57e8e7aca025c4d16e0068d28a994a7fa7eab61d
I hope it's ok - i'm going to go ahead an implement an algorithm for the cache key based on http://httpwg.org/specs/rfc7234.html#rfc.section.4.1 and http://httpwg.org/specs/rfc7234.html#freshening.responses (the preliminary work mentioned above). I need...
Ok, here's a sample cachekey: `[ 1, 'http://www.w3c.org:80/Protocols/rfc2616/rfc2616-sec14.html', [ [ 'moon-phase', 'sun', 'weather' ], [ '', 'shining', 'nice,bright' ] ], { etag: '"123456789"' }, { 'last-modified': 'Tue, 15 Nov 1994...
Generating selectors based on a validationResponse: https://github.com/goofballLogic/http-cache-semantics/commit/7927178edd6795a605e70055087eee37502f527b
Ok. If you have detailed guidance about required changes, I'm happy to implement them - I'm completely ok with following your aesthetic and algorithmic preferences. Alternatively, I can just submit...
Regarding "strong" or "weak" columns: the selector() call returns a selector which is always a cache key containing either a strong or a weak validator (per the spec). The user...
See https://codepen.io/goofballLogic/pen/VwYRRjx for example ``` var doc = [{ "@id": "http://test.com/1", "http://test.com/name": [{ "@value": "hello" }], "http://test.com/nested": [{ "@id": "http://test.com/2", "http://test.com/name": [{ "@value": "world" }] }] }]; var docQuery =...
Hmm. It's been a while since i looked at this code base (although it's being used). I'll try to have a look this week.
Sorry it's been so long getting back to you @bitmage I believe the code doesn't cover the case you are describing, although it would be very useful. The only current...