Skip to content

Commit 19b2958

Browse files
committed
Remove obsolete pragma header from default dynamic route headers.
1 parent 4fa7a3d commit 19b2958

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# bedrock-express ChangeLog
22

3+
## 8.5.0 - 2025-mm-dd
4+
5+
### Changed
6+
- Remove obsolete `pragma` header from default dynamic route headers.
7+
38
## 8.4.0 - 2025-08-24
49

510
### Added

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ http server framework. Some new events were added related to fastify setup.
142142
cache handler for dynamic content is installed. By default, caching for
143143
dynamic content is disabled by setting these headers:
144144
- Cache-Control: no-cache, no-store, must-revalidate
145-
- Pragma: no-cache
146145
- Expires: 0
147146
Listeners may replace and/or cancel this behavior.
148147
- **bedrock-express.configure.router**

lib/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright 2012 - 2024 Digital Bazaar, Inc.
2+
* Copyright 2012 - 2025 Digital Bazaar, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -243,7 +243,6 @@ bedrock.events.on('bedrock.start', async () => {
243243
// done after static to prevent caching non-static resources only
244244
app.use((req, res, next) => {
245245
res.header('Cache-Control', 'no-cache, no-store, must-revalidate');
246-
res.header('Pragma', 'no-cache');
247246
res.header('Expires', '0');
248247
next();
249248
});

0 commit comments

Comments
 (0)