Cache-Busting and {{asset}}-Helper

Hi together,

First of all the prerequisties:

Ghost version: 4.4.0
Ghost CLI: 1.17.2
Installation: Localhost
Enviroment: Development
Node Version: v.12.18.2

I am currently facing an issue with the {{asset}} helper and the related cache buster. Unfortunately, I am not 100% sure how this issue was created, otherwise if would have tried to revert it.

What I can say is that I have updated to the most recent Ghost CLI version and entered “ghost buster”.

In regards of the issue:

Until today, I have been embedding my assets by the use of the {{asset}} helper which has always worked fine. But for any unknown reason, I now face inconsistency in terms of all .js and .css files I have been including with the helper.

As the screenshot shows a 404 error occurs.

Of course, I could be fixing the issue by replacing the {{asset}} helper with relative paths but I would really like to know how this issue is caused and what needs to be done in order to fix it?

Thanks in advance for your help

The %20 in the urls looks like you’ve got an extra space included somewhere :thinking:

Does your asset usage look like this {{asset " js/..."}}?

Sometimes you should just take a break, inhale, go outside and look with fresh eyes on code.

Yeah, that was exactly the issue. Thanks for the quick response!