Problem with assets optimization, relative links and integrity check

so here is something interesting: hugo actually has some known trickyness in how it handles URLs that might be part of the problem.

Give this thread a read through - maybe there is a solution in here: