Skip to content

Commit

Permalink
Merge pull request #48 from cfpb/fix/cache-bust-pages-url
Browse files Browse the repository at this point in the history
Add querystring param to cache-bust pages URL
  • Loading branch information
chosak authored Dec 12, 2024
2 parents 9b97209 + 35f57e9 commit 291a1c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
- name: Optionally fetch list of cf.gov pages to test
env:
TEST_PAGES_URL: ${{ secrets.TEST_PAGES_URL }}
# Add a random date query string to the URL to cache-bust.
run: >
[[ -n "${TEST_PAGES_URL}" ]] && wget -O urls.txt "$TEST_PAGES_URL"
[[ -n "${TEST_PAGES_URL}" ]] && wget -O urls.txt "$TEST_PAGES_URL?$(date +%s)"
continue-on-error: true

- name: Run Lighthouse CLI against specified cf.gov pages
Expand Down

0 comments on commit 291a1c3

Please sign in to comment.