WordPress NitroPack Cache Configuration

WordPress NitroPack Cache Configuration

If you need to exclude specific URIs from being cached by NitroPack in WordPress, follow these easy steps:

Step 1: Open LiteSpeed Cache Settings

  1. Log in to your NitroPack account

  2. Navigate to Cache Settings ➡️ Cache.

  3. Enable the feature from your Cache settings and fill out a bit of information.

Step 2: Add the URL to the Exclusion List

  1. Go to Exclusions section

  2. Enter plugin.nytsys.com to “Asset URL/Code”

  3. Select JavaScript under Resource Type and leave the other options in default.

  4. Click the “Add” button to exclude.

Step 3: Clear/Purge the Cache

  1. To clear the cache, go to Cache Insights

  2. Click "Purge cache"  on the top right corner

Info
It is important to clear the cache after making the changes to load the latest version of your website.

You're all set! The specified JS snippet will now be excluded from caching, so they should work correctly on your site.