Debian Codegraph @

www/src/content/reference/02-headers/13-HX-Refresh.md

raw symbols SCIP
1 ---
2 title: "HX-Refresh"
3 description: "Trigger a full page reload"
4 ---
5
6 The `HX-Refresh` response header, when set to `true`, reloads the entire page.
7
8 Use this when you need to reset all page state after an action.
9
10 ## Example
11
12 ```http
13 HX-Refresh: true
14 ```
15
16 ```python
17 return Response(
18 "Changes saved",
19 headers={'HX-Refresh': 'true'}
20 )
21 ```