gabesullice / jwt

https://www.drupal.org/project/jwt
18 stars 12 forks source link

Prevent caching response in GETs using JWT header #3

Closed jonathangreen closed 7 years ago

jonathangreen commented 7 years ago

Implement Drupal RequestPolicyInterface to prevent get responses from being cached when using jwt_auth. Before making a get request would cache and another request without the token would be served up the same content.

Fixes issue 2791127: https://www.drupal.org/node/2791127

jonathangreen commented 7 years ago

Pushed without the formatting changes.

gabesullice commented 7 years ago

YAY