Skip to content

Commit

Permalink
Add query param to PDF URL to bust cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmielnik committed Feb 1, 2020
1 parent 02af2c7 commit 43b4a9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { ContactInfo, Button, Name, Page, Section, Description, Experience } fro

import styles from './App.module.scss';

const PDF_URL = `${process.env.REACT_APP_PDF_FILENAME}?${Date.now()}`;

const print = () => window.print();

const App = () => (
Expand Down Expand Up @@ -38,7 +40,7 @@ const App = () => (

<Button.Link
className={styles.downloadButton}
href={process.env.REACT_APP_PDF_FILENAME}
href={PDF_URL}
title="Download PDF"
type="button"
>
Expand Down

0 comments on commit 43b4a9c

Please sign in to comment.