“https://schauspielbuehnen.de/static/*” instead of “*schauspielbuehnen.de/static/*”.
Please also check, that no other PageRules that could/would match the given URL, are executed before this PageRule. If you don’t mind, just share ALL of your PageRules (where they are listed) for completeness.
The .css file gets cached, because it gets cached by default. The .mjs does not get cached, because the PageRule:
does not match (not the case)
is not getting applied, because another PageRule gets applied before it
Also please change the content-type/MIME-Type according to the official list to:
Your solution worked! Thank you very much! It gets cached now correctly. There was indeed another page rule before this one just deactivating the auto minification – and thank you for your tip with the mime type. Will also change this according to the suggested type.