Title: Larger generated script not served
Last modified: November 27, 2022

---

# Larger generated script not served

 *  [kortelpl](https://wordpress.org/support/users/kortelpl/)
 * (@kortelpl)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/larger-generated-script-not-served/)
 * Hi,
    The PHP generated java script is not served at all if it is longer than 
   about 1.1M bytes. If there is a limit for processing, it would be better to pass
   the script then to return no content at all. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/larger-generated-script-not-served/#post-16237902)
 * [@kortelpl](https://wordpress.org/support/users/kortelpl/) I’d like to help you
   out with this. When you’re saying the content is not served, what exactly do 
   you mean? Are you saying that you have a JS file that has the extension .php 
   and it’s not processed by the browser anymore because of Asset CleanUp?
 * I need more information (e.g. including print screens, you can use a service 
   such as [https://imgbb.com/](https://imgbb.com/)) about this.
 *  Thread Starter [kortelpl](https://wordpress.org/support/users/kortelpl/)
 * (@kortelpl)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/larger-generated-script-not-served/#post-16238614)
 * [@gabelivan](https://wordpress.org/support/users/gabelivan/) Actually it’s a `
   template_redirect` hook that uses a downloaded JS. If the JS is below 1.2M bytes
   it goes through Asset CleanUp smoothly, but once is a bit bigger, the return 
   is no content with content length of 0.
    It’s on admin area, so I don’t want 
   to post it to the public, but I can share with you on DM.
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/larger-generated-script-not-served/#post-16238767)
 * [@kortelpl](https://wordpress.org/support/users/kortelpl/) I understand. You 
   can share it privately by filling the following form: [https://www.gabelivan.com/contact/](https://www.gabelivan.com/contact/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Larger generated script not served’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/larger-generated-script-not-served/#post-16238767)
 * Status: not resolved