Skip to content

Commit

Permalink
Boost: Update critical CSS URL parameter (#32727)
Browse files Browse the repository at this point in the history
* Update critical CSS generation url param to include timestamp

* changelog
  • Loading branch information
haqadn authored Aug 29, 2023
1 parent fe21418 commit e9b184c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default async function generateCriticalCss(

// Prepare GET parameters to include with each request.
const requestGetParameters = {
'jb-generate-critical-css': '1',
'jb-generate-critical-css': Date.now().toString(),
};

logPreCriticalCSSGeneration();
Expand Down
4 changes: 4 additions & 0 deletions projects/plugins/boost/changelog/update-critical-css-param
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Critical CSS: Updated critical CSS url parameter to avoid redirect caching

0 comments on commit e9b184c

Please sign in to comment.