I don’t really understand why the caching is there to begin with. I only do the dynamic interpretation of the .less files while in development. For production I will compile everything into a .css file.
Be sure to change the string ’/css/’ to be the path to where your bootstrap directory lives.
Also do not forget to remove this code when you go to production. (Yes, I know it is not ideal to have manual tasks like this upon code releases, but hey, I just need to get my .less file working once! Plus I am documenting my code snippet here for next time I am in this soup.)