Spec-Zone.ru › htmx

HX-Refresh

Reloads page with location.reload()

The HX-Refresh response header, when set to true, reloads the entire page.

Use this when you need to reset all page state after an action.

Example

HX-Refresh: true
return Response(
    "Changes saved",
    headers={'HX-Refresh': 'true'}
)

Licensed under the Zero-Clause BSD License.
https://four.htmx.org/reference/headers/HX-Refresh/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API