Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Implement Cache Requests #4

Open
tpendragon opened this issue Jun 8, 2015 · 5 comments
Open

How to Implement Cache Requests #4

tpendragon opened this issue Jun 8, 2015 · 5 comments
Labels

Comments

@tpendragon
Copy link

Should we just use HTTP headers? The downside would be most browsers would always request past the cache.

@chrpr
Copy link

chrpr commented Jun 8, 2015

I think HTTP headers are the way to go? I'm not sure browsers requesting past the cache is that much of an issue. Do we have "browser access" use cases? Even if we do, it would be a problem for caching 3rd party sites like id.loc, but if a Hydra implementation included it's own triplestore for this content, we could probably configure it to return 304 Unmodified for those requests?

@scande3
Copy link
Contributor

scande3 commented Jun 8, 2015

I'm unsure what this is referring to exactly if it could be expanded upon? (Or can ask others at the OR2015 meeting tonight on it if I am just missing the obvious). Although, from an uninformed opinion based, HTTP headers would make sense to use for me.

@tpendragon
Copy link
Author

I think the big question in my mind is how should a client request PAST the cache?

@chrpr
Copy link

chrpr commented Jun 8, 2015

When you say "client" do you mean Hydra, or other generic clients? If the latter, do we have use cases for that? If the former, there's gotta be a workaround via some "special" contract, though that isn't really ideal. Maybe a question to run by Ruben?

@chrpr
Copy link

chrpr commented Jun 10, 2015

@terrellt Thinking about this a bit more. Perhaps a client requests past the cache by issuing a DeleteResourceOperation, and then re-requesting the Resource, which presumably then redirects to a CreateResourceOperation?

Or should the client potentially go to the original source directly, get a new representation, than do a Replace in the cache? That puts a lot of responsibility on the client, but also seems clean.

How frequently would a client like Oregon Digital want to reach past the cache like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants