diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aad489..cf72153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 6788b29..d965a87 100644 --- a/README.md +++ b/README.md @@ -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** diff --git a/lib/index.js b/lib/index.js index a46da1c..15f2c8a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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. @@ -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(); });