mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
Add proper xkey tags to docs 404 pages
Since we purge docs pages based on the version they are for, we need to tag the 404 pages with version as well, when available. Without that, any page that had been requested returning a 404 (such as somebody or some tool polling for release notes on a version that hasn't been released yet) would not get purged when new docs are loaded, which results in the 404 staying around even after the actual docs are updated.
This commit is contained in:
@ -17,7 +17,9 @@ pgdocs_current
|
||||
Set on all documentation pages that are in the current version at
|
||||
the time of setting.
|
||||
pgdocs_all
|
||||
Set on documentation pages that are cross-version, such as index pages.
|
||||
Set on documentation pages that are cross-version, such as index pages,
|
||||
as well as on 404 pages for versions that is unknown (in case this version
|
||||
is loaded later).
|
||||
pgdocs_<version>
|
||||
Set on documentation of the specified version.
|
||||
pgdocs_pdf
|
||||
|
Reference in New Issue
Block a user