Skip to content

Commit

Permalink
Merge pull request #34964 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Oct 16, 2024
2 parents 510ef08 + 79269b5 commit dd31a5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/frame/middleware/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ export default function (app: Express) {
// *** Headers ***
app.set('etag', false) // We will manage our own ETags if desired

// temporary
app.use(function (req, res, next) {
res.set('x-ptcl', req.secure ? 'o' : 'x')
next()
})

// *** Config and context for redirects ***
app.use(detectLanguage) // Must come before context, breadcrumbs, find-page, handle-errors, homepages
app.use(asyncMiddleware(reloadTree)) // Must come before context
Expand Down

0 comments on commit dd31a5f

Please sign in to comment.