Title: Generates empty .js file in cache folder
Last modified: August 21, 2016

---

# Generates empty .js file in cache folder

 *  Resolved [hki429](https://wordpress.org/support/users/hki429/)
 * (@hki429)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/generates-empty-js-file-in-cache-folder/)
 * Hi,
 * The plugin does not work for me: it generates an empty .js file in the cache 
   folder, that include the following error messages:
 * `
    /* contact-form-7: (http://www.example.com/wp-content/plugins/contact-form-
   7/includes/js/scripts.js) */ /* Error loading script content: http://www.example.
   com/wp-content/plugins/contact-form-7/includes/js/scripts.js HTTP Code: 403 (
   Forbidden) */
 * I read in [another thread](http://wordpress.org/support/topic/post-editor-missing-in-wp-35-after-upgrade?replies=62#post-3548524)
   for that error message:
 * >  A 403 forbidden means that your browser isn’t able to load the scripts up 
   > because your server isn’t allowing it. Unfortunately, this is a hard one to
   > solve. Anything could be blocking the server. Check your .htaccess files for
   > anything strange, and/or ask your host what’s going on.
 * Therefore: which .htaccess rules does this plugin need? I use iThemes Security(
   formerly Better WP Security) so I suppose that a .htaccess rule blocks this plugin
   from working correctly.
 * Thanks for any help,
 * [https://wordpress.org/plugins/js-css-script-optimizer/](https://wordpress.org/plugins/js-css-script-optimizer/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [hki429](https://wordpress.org/support/users/hki429/)
 * (@hki429)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/generates-empty-js-file-in-cache-folder/#post-4881129)
 * This issue is resolved; there was no plugin error nor a conflict with another
   plugin.
 * The problem was caused by a too stringent security setting in the WAF, which 
   thought that the attempts of the plugin to grab the js files were malicious. 
   After I had whitelisted the server IP, the GET requests weren’t blocked any more
   and the plugin worked.
 * My apologies if someone already put time and effort into this topic.

Viewing 1 replies (of 1 total)

The topic ‘Generates empty .js file in cache folder’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/js-css-script-optimizer_cdb920.svg)
 * [JS & CSS Script Optimizer](https://wordpress.org/plugins/js-css-script-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/js-css-script-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/js-css-script-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/js-css-script-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/js-css-script-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/js-css-script-optimizer/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [hki429](https://wordpress.org/support/users/hki429/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/generates-empty-js-file-in-cache-folder/#post-4881129)
 * Status: resolved