Guest User

Untitled

a guest
Dec 12th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Cache-Control:"must-revalidate, no-cache, private"
  2. X-Drupal-Dynamic-Cache:"UNCACHEABLE"
  3.  
  4. X-Drupal-Cache:"HIT"
  5.  
  6. return (new ResourceResponse($rc))->addCacheableDependency(null);
  7.  
  8. Drupal::service('page_cache_kill_switch')->trigger();
  9.  
  10. $response = new ModifiedResourceResponse($result);
  11. return $response;
  12.  
  13. $response = new ResourceResponse($result);
  14. $response->addCacheableDependency($result);
  15. return $response;
Add Comment
Please, Sign In to add comment