Closed (works as designed)
Project:
JSON:API
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 Jan 2018 at 14:36 UTC
Updated:
6 Jan 2018 at 06:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lawxen commentedThe issue summry step 3
This is the debug result:

Comment #3
wim leersThis sounds an awful lot like #2933939: JSON API module must not send cacheable responses to PATCH, POST and DELETE requests, which I opened yesterday, while working on #2930028: Comprehensive JSON API integration test coverage phase 1: for every entity type, individual resources only.
Comment #4
gabesulliceHi @caseylau, thanks for the bug report!
I'm not able to replicate this myself. Would you mind answering a couple questions:
Comment #5
lawxen commented@gabesullice
Comment #6
gabesulliceThanks @caseylau. Perhaps it's 8.4. I'm using 8.5. I'll look at this more soon.
Comment #7
lawxen commented@gabesullice
Yeah,I test on drupal8.5.x just now, no this issue's problem.
So it just happen on drupal8.4.x.
Comment #8
e0ipsoIf upgrading to D8.5 fixes the issue and you're already running jsonapi:1.x-dev then this tells me that the problem is in Drupal core and it has been fixed in D8.5.
Please update the issue if you find the core patch that solved it.
Comment #9
dravenk@e0ipso
This bug still can reproduce in 8.4 today. Because I found that commit which fixed this bug only apply in 8.5.x. See log below.
Comment #10
e0ipso@dravenk thank you for providing more information. I understand there is a problem in 8.4 today, but that is a problem in Drupal core. That problem has already been fixed by the commit you provided, so nothing else to do but wait for a D8.5 release or apply that patch manually in your site. There is nothing the JSON API module can do for this.