home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 639269994

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/pull/798#issuecomment-639269994 https://api.github.com/repos/simonw/datasette/issues/798 639269994 MDEyOklzc3VlQ29tbWVudDYzOTI2OTk5NA== 9599 2020-06-05T05:36:35Z 2020-06-05T05:38:25Z OWNER

Django docs on CSRF and caching: https://docs.djangoproject.com/en/3.0/ref/csrf/#caching

If the csrf_token template tag is used by a template (or the get_token function is called some other way), CsrfViewMiddleware will add a cookie and a Vary: Cookie header to the response. This means that the middleware will play well with the cache middleware if it is used as instructed

So the cookie is only set for pages that included a hidden csrftoken form field! This could work.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
631300342  
Powered by Datasette · Queries took 0.642ms · About: github-to-sqlite