Commit 10a5d38
committed
Also allow caching of the logout route
It is a bit more general. If the only argument is the requesttoken. So a
get request will work with the CSRF protection. The route will be
generated without the parameters and the request token will be added at
the end.
Before the route could not properly be cached as the request token was
always changeing. However now it can be cached saving precious cpu
cycles.
Signed-off-by: Roeland Jago Douma <[email protected]>1 parent 2ba75ac commit 10a5d38
1 file changed
+22
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 | | |
55 | 67 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 68 | + | |
| 69 | + | |
60 | 70 | | |
61 | 71 | | |
62 | | - | |
63 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
64 | 80 | | |
65 | 81 | | |
0 commit comments