Skip to content

v1.1 - Twig tags ( {% dontcache %} and {% withcsrf %} )#39

Description

@webremote

Related issues, feature-requests and discussions are collected here 馃槂

after v1.0.5 has been released (waiting for a few issues to be resolved and cleaning up the develop branch) the next release v1.1.0 has to contain code for Twig extensions that introduces a DO_NOT_CACHE and WITH_CSRF definitions that should be respected.

  • the {% dontcache %} tag disables the cache for the entire page. there's some code in the current develop branch that could work, but i'd rather start over. it's a mess, as the main branch is the leading branch....

  • the {% withcsrf %} tag uses the same technique as Craft (without loading Craft) and ensures the correct CSRF tokens are set in both cookies and sessions.

this (finally) fixes #10 and #csrf-related issues

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions