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

Does this proxy came with caching functionality? #1153

Open
nnnikolay opened this issue Mar 16, 2017 · 0 comments
Open

Does this proxy came with caching functionality? #1153

nnnikolay opened this issue Mar 16, 2017 · 0 comments

Comments

@nnnikolay
Copy link

I see that the proxy server sends if-none-match HTTP header, which my API server handles as a key to check, was the data changed or not. Which is totally fine. But there is a problem: the proxy server receives 304 HTTP status code and empty body which makes sense. But, in that case, my browser doesn't get the data from the proxy server at all.
Is there any way to fix that? except this one

proxy.on('proxyReq', (proxyReq) => {
  proxyReq.setHeader('X-API-Key', config.api.key);
  proxyReq.setHeader("if-none-match", "");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant