Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/multi-6bc014718a
Browse files Browse the repository at this point in the history
  • Loading branch information
TreyWW authored Feb 6, 2025
2 parents d3ffc41 + 2e69f47 commit cae8b09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
- **Invoice Reminders**: Ensure timely payments by sending reminder emails for outstanding invoices.
- **Emailing**: Email invoices and payment reminders directly from the platform.

### Table of Contents
- [Getting Started](#Getting-started)
- [Contribution](#Contribution)
- [Pull Requests / Merge Request](#Pull-Requests/Merge-Requests)
- [Code Style and Quality](#Code-Style-and-Quality)
- [Development](#Development)
- [Credits](#Credits)
- [Star History](#Star-History)

## Getting Started

### Prerequisites
Expand Down
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 cae8b09

Please sign in to comment.