Commit e1c5203
committed
Auto-append a cachebust URL to preview links
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.1 parent 0f5896d commit e1c5203
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments