Skip to content

Commit

Permalink
Merge pull request #3155 from artsy/joeyAghion/cf
Browse files Browse the repository at this point in the history
feat: bypass cache when previewing articles from writer
  • Loading branch information
mzikherman authored Sep 18, 2024
2 parents b8c6900 + 5ead03c commit 7c6e07f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/client/apps/edit/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ export class EditHeader extends Component<Props> {
{this.getSaveText()}
</HeaderButton>

<a href={`${forceURL}/article/${article.slug}`} target="_blank">
<a
href={`${forceURL}/article/${article.slug}?nocache=true`}
target="_blank"
>
<HeaderButton ml={1} variant="secondaryOutline" size="small">
{article.published ? "View" : "Preview"}
</HeaderButton>
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/article_list/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class ArticleList extends Component {
</a>
<a
className={`article-list__preview paginated-list-preview avant-garde-button ${lockedClass}`}
href={`${forceURL}/article/${article.slug}`}
href={`${forceURL}/article/${article.slug}?nocache=true`}
target="_blank"
>
{shouldLockEditing ? (
Expand Down

0 comments on commit 7c6e07f

Please sign in to comment.