[PR #13028] [MERGED] Fixes #12760 - Adds Vary header to prevent caching of HTMX requests #14102

Closed
opened 2025-12-29 23:22:30 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13028
Author: @DanSheps
Created: 6/27/2023
Status: Merged
Merged: 6/29/2023
Merged by: @jeremystretch

Base: developHead: 12760-Vary-HTMX-Requests


📝 Commits (1)

  • 0fba417 Fixes #12760 - Adds Vary header to cause cache to be keyed based on URL and the HX-Request header (or lack thereof)

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 netbox/netbox/middleware.py (+3 -0)

📄 Description

Fixes: #12760

  • Adds Vary header to CoreMiddleware to cause caching to depend on the URL and the HX-Request flag.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13028 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 6/27/2023 **Status:** ✅ Merged **Merged:** 6/29/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `12760-Vary-HTMX-Requests` --- ### 📝 Commits (1) - [`0fba417`](https://github.com/netbox-community/netbox/commit/0fba417e10323a6e8845a63c234fe6c6d7772724) Fixes #12760 - Adds Vary header to cause cache to be keyed based on URL and the HX-Request header (or lack thereof) ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/middleware.py` (+3 -0) </details> ### 📄 Description ### Fixes: #12760 * Adds Vary header to CoreMiddleware to cause caching to depend on the URL and the HX-Request flag. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:22:30 +01:00
adam closed this issue 2025-12-29 23:22:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14102