Auto-append a cachebust URL to preview links [WHIT-3385]#11487
Open
kashifatcha wants to merge 1 commit into
Open
Auto-append a cachebust URL to preview links [WHIT-3385]#11487kashifatcha wants to merge 1 commit into
kashifatcha wants to merge 1 commit into
Conversation
75a57a0 to
f6bb9dc
Compare
On the "preview" links we surface on the document summary screen,
we want to append a `?cachebust={timestamp}` parameter, where
`timestamp` is the current time in seconds (unix epoch time)
I have auto-appended a cachebust URL query parameter to:
- Normal document preview
- Translation preview
We get some confusing support tickets where multiple publishers
coalescee around the same document. A lot of the time, the
underlying reason for the support ticket is caching. For example,
two publishers previewing a document and seeing different things,
because one of them had an older version cached already.
Adding a cachebust string will force a fresh preview everytime
the publisher clicks on the preview link, which should minimise the
number of support tickets coming our way.
f6bb9dc to
caf9bbf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the "preview" links we surface on the document summary screen, we want to append a
?cachebust={timestamp}parameter, wheretimestampis the current time in seconds (unix epoch time)I have auto-appended a cachebust URL query parameter to:
We get some confusing support tickets where multiple publishers coalescee around the same document. A lot of the time, the underlying reason for the support ticket is caching. For example, two publishers previewing a document and seeing different things, because one of them had an older version cached already.
Adding a cachebust string will force a fresh preview everytime the publisher clicks on the preview link, which should minimise the number of support tickets coming our way.