-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apollo-cache-control: consider hintless root fields to be uncached (#…
…2210) This is consistent with the old engineproxy interpretation of cache hints. We special-case scalar fields to inherit their parent field's hints for simplicity (so you don't have to hint every scalar field in a hinted object), but when the parent field is non-root that inherited hint gets defaultMaxAge applied to it. When the parent field is the root, that inherited hint doesn't get defaultMaxAge applied because we don't run willResolveField for the root query. Includes a CHANGELOG update for #2197.
- Loading branch information
Showing
3 changed files
with
57 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
# Changelog | ||
|
||
### vNEXT | ||
|
||
* Fix cache hints of `maxAge: 0` to mean "uncachable". (#2197) | ||
|
||
* Apply `defaultMaxAge` to scalar fields on the root object. (#2210) | ||
|
||
### v0.3.0 | ||
|
||
* Support calculating Cache-Control HTTP headers when used by `[email protected]`. | ||
|
||
(There are a number of other 0.3.x releases as well as 0.4.0 with no code | ||
changes due to how the `apollo-server` release process works.) | ||
|
||
### v0.2.0 | ||
|
||
Moved to the `apollo-server` git repository. No code changes. (There are a | ||
number of other 0.2.x releases with no code changes due to how the | ||
`apollo-server` release process works.) | ||
|
||
### v0.1.1 | ||
|
||
* Fix `defaultMaxAge` feature (introduced in 0.1.0) so that `maxAge: 0` overrides the default, as previously documented. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters