404 responses should not be cached by Drupal.
This came up while writing tests. In theory, we could also add the url params as cache context, but not sure if that's really useful.

Comments

swentel created an issue. See original summary.

swentel’s picture

Weirdly enough I see url.query_args:resource, so this might be me not writing a good test. Digging further first in that.

  • swentel committed d92ecae on 8.x-1.x
    Issue #3166938: Do not cache 404 responses
    
swentel’s picture

Status: Active » Fixed

committed, we can always revise later.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.