You can simplify the code to prevent the page from being cached by adding a "no_cache" option setting to the routing YAML file. Details here:

https://www.drupal.org/node/2463533

Patch to follow.

CommentFileSizeAuthor
#2 2950101-2.prevent-caching-code.patch1.92 KBjrb

Comments

jrb created an issue. See original summary.

jrb’s picture

Status: Active » Needs review
StatusFileSize
new1.92 KB

Patch attached.

back-2-95’s picture

Assigned: Unassigned » back-2-95
Status: Needs review » Reviewed & tested by the community

  • back-2-95 committed bca902e on 8.x-1.x authored by jrb
    Issue #2950101 by jrb: Can simplify code to prevent caching
    
back-2-95’s picture

Status: Reviewed & tested by the community » Fixed
back-2-95’s picture

Status: Fixed » Closed (fixed)