Skip to content

Commit

Permalink
Filters asset files from cache queue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford committed Aug 17, 2021
1 parent 1c28ba5 commit cf65881
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/middlewares/setup/setPreloadWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ function getUrls() {

url = new Url( url.href )

// Bail if url is an asset
if ( url.pathname.includes( '.' ) ) {
return acc
}

// If local, bail
if ( !url.isLocal() ) {
return acc
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nicholas-wp",
"version": "1.0.5",
"version": "1.0.6",
"description": "WordPress support for Nicholas nearly headless theme framework",
"main": "fetch.js",
"scripts": {
Expand Down

0 comments on commit cf65881

Please sign in to comment.