Skip to content

Commit

Permalink
Merge pull request #546 from TreyWW/fix/468
Browse files Browse the repository at this point in the history
Fixed issue #468
  • Loading branch information
TreyWW authored Feb 6, 2025
2 parents 650f019 + e078477 commit e2787df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def __call__(self, request: HtmxAnyHttpRequest):
response.headers["HX-Reswap"] = "innerHTML"
# if 'data-layout="breadcrumbs"' not in str(response.content):
response.headers["HX-Trigger"] = "update_breadcrumbs"

# fix issue with browser not rendering CSS when you use the back function issue #468
if "HX-Request" in request.headers:
response["Cache-Control"] = "no-store, max-age=0"
return response


Expand Down

0 comments on commit e2787df

Please sign in to comment.