WordPress LiteSpeed Cache Configuration

WordPress LiteSpeed Cache Configuration

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

Step 1: Open LiteSpeed Cache Settings

  1. Log in to your WordPress dashboard.

  2. Navigate to LiteSpeed Cache ➡️ Cache.

Step 2: Add the URI to the Exclusion List

  1. Click on the "[4] Excludes" tab.

  2. Find the "Do Not Cache URIs" section.

  3. Enter the URL or path of the URI (e.g., JavaScript file) you want to exclude from caching.

Step 3: Save the Changes

  1. Click "Save Changes" to apply your configuration.

Step 4: Clear/Purge the Cache

  1. To clear the cache, hover over the LiteSpeed icon in the admin bar.

  2. Click "Purge All".


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. 


    Submit a Ticket

      • Related Articles

      • WordPress W3 Total Cache Configuration

        To ensure specific JS files are not minified by W3 Total Cache, follow these steps: 1. Access W3 Total Cache Settings: From your WordPress dashboard, navigate to Performance ➡️ Minify. 2. Navigate to the Advanced Section: Click the Advanced section. ...
      • WordPress WP Fastest Cache Configuration

        If you need to exclude specific URIs from being cached by WP Fastest Cache in WordPress, follow these simple steps: Step 1: Access WP Fastest Cache Settings Log in to WordPress: Start by logging into your WordPress admin dashboard. Navigate to WP ...
      • WordPress WP Super Cache Configuration

        If you need to exclude specific URIs from being cached by WP Super Cache in WordPress, follow these simple steps: Step 1: Access WP Super Cache Settings Log in to WordPress: Begin by logging into your WordPress admin dashboard. Navigate to WP Super ...
      • WordPress WP-Optimize - Clean, Compress, Cache Configuration

        If you need to exclude specific URIs from being cached by WP-Optimize - Clean, Compress, Cache in WordPress, follow these simple steps: Step 1: Access WP-Optimize Cache Settings Log in to WordPress: Begin by logging into your WordPress admin ...
      • WordPress WP Rocket Configuration

        In some cases, the Nitro Snippet JS may not function correctly due to secondary processing by third-party speed and optimization plugins, such as WP Rocket. To ensure Nitro Snippet JS works properly, you should configure WP Rocket to exclude its ...