Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# bedrock-express ChangeLog

## 8.5.0 - 2025-mm-dd

### Changed
- Remove obsolete `pragma` header from default dynamic route headers.

## 8.4.0 - 2025-08-24

### Added
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ http server framework. Some new events were added related to fastify setup.
cache handler for dynamic content is installed. By default, caching for
dynamic content is disabled by setting these headers:
- Cache-Control: no-cache, no-store, must-revalidate
- Pragma: no-cache
- Expires: 0
Listeners may replace and/or cancel this behavior.
- **bedrock-express.configure.router**
Expand Down
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright 2012 - 2024 Digital Bazaar, Inc.
* Copyright 2012 - 2025 Digital Bazaar, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -243,7 +243,6 @@ bedrock.events.on('bedrock.start', async () => {
// done after static to prevent caching non-static resources only
app.use((req, res, next) => {
res.header('Cache-Control', 'no-cache, no-store, must-revalidate');
res.header('Pragma', 'no-cache');
res.header('Expires', '0');
next();
});
Expand Down