Commit f972e5f
committed
Skip cache headers on error responses
post_process() was setting Cache-Control: max-age=43200 on all
responses including 4xx/5xx errors, causing error pages to be
cached for 12 hours. Now checks response status and uses no-cache
headers when status >= 400.1 parent e4e70ec commit f972e5f
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments