Prevent static file creation for dynamic CSS/JavaScript
WP Rocket has an automatically applied performance enhancement: CSS and JavaScript files loaded dynamically via PHP are automatically saved to static files to improve loading time.
If this behavior causes any problems on your site, you can exclude files from this process by using the helper plugin below.
Helper plugin
📝 Manual code edit required before use!
You must edit the line beginning with $excluded_files[]
to reflect the path of the PHP file you want to exclude from this process.
📥 Download (.zip): WP Rocket | Exclude from Static File Creation
Developers: You can find the code for this plugin on GitHub.