Hi @mickaelperrin
Thanks for reporting.
The reason why I am not putting it to github, is because I am still actively developing it and adding new features. Some days, I may release 5 or 6 updates within a week and I don’t want the trouble of looking for other developers code.
I am planning on adding it there eventually, when I feel it has matured enough that I won’t be adding new features soon.
For now, reporting it here or via fastvelocity.com would be way ??
—
I spotted the error you referred (thanks) and I’ll push it on an update today, together with a couple more changes I am working on right now.
However, if you have an error 500 if the CSS file doesn’t exist…
First, if the file doesn’t exist, that means there is an error somewhere else and that a plugin or your theme is enqueuing it wrong.
Second, that function fastvelocity_download
is used to not only download CSS but JS files, so the potential is there for both situations.
Third, that specific line is a curl fallback, for when wp_remote_get
and wp_remote_retrieve_response_code
fails (but it makes sense it would fail if the file returns a 404).
So in short, I’ll have to check for the curl response and watch it for a 200 response header instead of just replacing that variable.