Force reload of scrips and stylesheets – something wrong with the code

I’m trying to force reload of scripts and stylesheets in plugins and themes. I’m trying to achieve this with the following code:

When I apply this to my WordPress website, it starts loading to infinite. What am I doing wrong? I think this code should do the trick.