-
Notifications
You must be signed in to change notification settings - Fork 446
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
"Cache-Control" Header in Web()->request(); not working #908
Comments
take care here, the order of the params is not limited to this version, it could be
|
should be fixed now at f3-factory/fatfree-core@59075a1 |
@ikkez thanks for the fix.I have just tested this, works fine! There is just one point (which is probably a problem from the API a use and not F3). In my case a get multiple
Is this a common use case, or just a strange implementation of that API? The Issue can be closed anyways ;) |
I already got an answer:
|
I use
\Web::instance()->request();
to perform third-party API calls. The response headers of my cURL request look like this:I would expect the response should be cached automatically because of its
Cache-Control
header (Cache-Control: private, max-age=60
).Unfortunately the
preg_match()
which checks this header, does not take care of the "private" part L537. Therefore the "max-age" of "60" is not found.I think we could adjust the regex a bit to take care of it.
Reference: Specification 14.9 Cache-Control
The text was updated successfully, but these errors were encountered: