Commit ccf3ad8
committed
Fix cache headers on early forced redirect responses
When forced redirects fire before URL resolution (the new early check),
set request.path_project_slug and attempt to resolve the path to get
version info for proper CDN cache control and cache tag headers.
If resolution fails (e.g., "/" before system redirect), default to
caching the redirect response since the target URL will handle authz.1 parent 8a7101c commit ccf3ad8
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
199 | 217 | | |
200 | 218 | | |
201 | 219 | | |
| |||
0 commit comments