Sambruk / streamflow-core

3 stars 2 forks source link

Improve caching: allow for non-cached requests #8

Closed gustafnk closed 10 years ago

gustafnk commented 10 years ago

It should be possible for backend-service.js client to have a particular request NOT cached.

Use case: "list of cases for a project and project type" should never be cached.

However, for "hypermedia queries" for deep than that, what should the result be? (The client should not need to know about the server logic of of data changes). This is probably a hard problem.

We could also read the cache headers on the requests, but I'm not sure how this would work. Since the client/server communication is very chatty, it's no good to use e-tags and/or other ways of the server to indicate a cache miss.

gustafnk commented 10 years ago

A solution attempt for this issue has now been pushed to https://github.com/jayway/streamflow-core/tree/feature-caching-and-simple-case-url

However, we need to test this (a lot) to see if it works in all the possible cases.

gustafnk commented 10 years ago

Solved by https://github.com/jayway/streamflow-core/commit/06a257c498f30ac4497e9da4a2c1fe1b81c51db8