Title: Gravity Forms
Last modified: June 16, 2026

---

# Gravity Forms

 *  [MCGWD](https://wordpress.org/support/users/mginop/)
 * (@mginop)
 * [1 day, 8 hours ago](https://wordpress.org/support/topic/gravity-forms-85/)
 * How would I go about preventing the caching of certain JS files? I have registration
   form set up with Gravity Forms and Authorize.net, but with the PC plugin turned
   on the form hangs when submitted. I’d like to exclude caching on the following
   plugin directories that contained the JavaScript files:
   /gravityforms/js//wp-
   gateways/ Can I add these directories into the do not cache pages field? Thanks
   in advance.

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

 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [1 day, 8 hours ago](https://wordpress.org/support/topic/gravity-forms-85/#post-18940349)
 * Hi [@mginop](https://wordpress.org/support/users/mginop/),
 * Powered Cache does not cache JavaScript files directly. However, if you mean 
   excluding those files from JS optimization, you can add patterns like these:
 *     ```
       /gravityforms/js/(.*)
       /wp-gateways/(.*)
       ```
   
 * Also, if those forms rely on nonces, expired nonces may cause submission issues
   when the page is cached for too long. In that case, I recommend keeping the page
   cache TTL under 12 hours, or excluding the specific page where the forms are 
   embedded from page cache.
 * If you can share the page URL, I’d be happy to take a look.
 * Regards,
 *  Thread Starter [MCGWD](https://wordpress.org/support/users/mginop/)
 * (@mginop)
 * [1 day, 7 hours ago](https://wordpress.org/support/topic/gravity-forms-85/#post-18940409)
 * Thanks for the quick reply ! I’m not using any JavaScript optimization nor am
   I minifying the html. You can take a look at the page at: [https://www.drivingright.org/graduated-driver-licensing/segment-1-mason-high-school/registration/](https://www.drivingright.org/graduated-driver-licensing/segment-1-mason-high-school/registration/)
   
   Note I just use 4111111111111111 for the credit card number, and wait for error
   message. But it never arrives as the form just hangs.
 *  Also the correct directories are:
   /wp-content/plugins/gravityforms/js/(.*_)__/
   wp-content/plugins/gravityforms-authorize-net-gateway/js/(._*)
    -  This reply was modified 1 day, 7 hours ago by [MCGWD](https://wordpress.org/support/users/mginop/).
 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [1 day, 1 hour ago](https://wordpress.org/support/topic/gravity-forms-85/#post-18940499)
 * I couldn’t reach the page. It returned `ERR_CONNECTION_TIMED_OUT` after a long
   wait.
 * I also tried bypassing Powered Cache by adding `?nopoweredcache=1` to the end
   of the URL, but the issue still persisted.Could you please check the server error
   logs and see if there is anything related?
 *  Thread Starter [MCGWD](https://wordpress.org/support/users/mginop/)
 * (@mginop)
 * [6 hours, 23 minutes ago](https://wordpress.org/support/topic/gravity-forms-85/#post-18941539)
 * Thanks for checking. I didn’t see an issue with the site being unavailable. I
   think I have this issue resolved now. Thanks for the support quick and response
   anyways!
    -  This reply was modified 6 hours, 22 minutes ago by [MCGWD](https://wordpress.org/support/users/mginop/).

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgravity-forms-85%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/powered-cache/assets/icon.svg?rev=2796939)
 * [Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score](https://wordpress.org/plugins/powered-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/powered-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/powered-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/powered-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/powered-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/powered-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [MCGWD](https://wordpress.org/support/users/mginop/)
 * Last activity: [6 hours, 23 minutes ago](https://wordpress.org/support/topic/gravity-forms-85/#post-18941539)
 * Status: not resolved