If you need to exclude specific URIs from being cached by WP Super Cache in WordPress, follow these simple steps:
Log in to WordPress: Begin by logging into your WordPress admin dashboard.
Navigate to WP Super Cache Settings: On the left-hand menu, go to Settings ➡️ WP Super Cache.
Go to the Advanced Tab: Within the WP Super Cache settings, click on the Advanced tab.
Add the URI to Exclude: Scroll down to the section labeled Rejected URL Strings.
In the input field provided, enter the specific URI or part of the URI you wish to exclude from caching. For example, add plugin.nytsys.com to prevent caching for any URIs containing this string.
Save Your Changes: After adding the URI, click the Save button to apply the changes.
Clear the Cache: To ensure your changes take effect immediately, scroll to the top of the page and click Delete Cache or Purge All Caches. This will clear the cached files and rebuild them based on your new settings.
It is important to clear and preload the cache, it will make the website much faster for the visitors.The specified URI, such as plugin.nytsys.com, will now be excluded from caching, ensuring that the associated JS snippet or other content works correctly on your site without being cached.