1. Home
  2. Getting Started
  3. Console Log: Current request is excluded from cache

Console Log: Current request is excluded from cache

Are you seeing the following message in your browser dev tools console:

SuperPWA: Current request is excluded from cache.

If you are wondering what it means, here is the answer.

Any page that you see on your web browser is made of multiple requests.

There is the HTML of the page, the CSS/JS files, images, AJAX requests and so on.

By default SuperPWA tries to cache all of them for offline usage. Except for the requests from the excluded URLs.

The default excluded URLs are the /wp-admin//wp-login/ and WordPress preview pages. You do not want the WordPress admin to be cached.

But I see this console log while browsing the website!

This exclusion is not based on the page URL, but based on the request URL.

For instance, front end of your website could make an AJAX request to wp-admin/admin-ajax.php and since the URL contains wp-admin, this request will not be cached.

This does not mean that the entire page will not be available offline. All the other requests from the page will be cached and ready for use offline.

TLDR: This is the expected behavior of SuperPWA and there is nothing to be concerned about.

Updated on November 29, 2022

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.

    Was this article helpful?

    Related Articles

    Need Support?
    Can’t find the answer you’re looking for? Don’t worry we’re here to help!
    Contact Support