Skip to content
OpenCart · User manual

Performance Pro

Version 1.4.2 Product page
Chapter 9

Checking that it works

How to confirm that stored pages are being served, what to test in your shop after enabling caching, and how to measure your own before and after.

The X-Performance-Pro header

Every page that Performance Pro handles carries a response header that says what happened. To read it:

  1. Open a page of your shop in a private browser window.
  2. Open the browser's developer tools with F12 and choose Network.
  3. Reload the page and click the first line of the list.
  4. Among the response headers, look for X-Performance-Pro.
ValueMeaning
HITA stored page was served. This is the fast path.
MISSOpenCart built the page and it has just been stored. The next matching visit gets a HIT.
BYPASSThe page was left to OpenCart. When a reason is known it follows as reason=....

If the header is missing altogether, Performance Pro did not handle the request. See Troubleshooting.

Reasons after BYPASS

ReasonMeaning
noneThe request is one that is never stored: a signed-in customer, products in the cart, a form being sent, a page outside the public catalogue.
offThe Pages category is off.
sessionThe page prints something that belongs to this visitor's session.
cookie: and a nameThe page sets that cookie, usually from another extension.
no-storeOpenCart or another extension marked the page as not cacheable.
privateThe page is marked as private.
statusThe answer is not a normal page: a redirect, a "not found" page or an error.
tokenThe page contains a form with a security token or a password field.
nonceThe page uses a content security policy with one-time values.
size, document, type, headerThe answer is not a complete HTML page of a normal size.

For new visitors the header also carries a first-visit note. first-visit=candidate means the page is waiting to come out identical a second time before it is stored for new visitors; HIT followed by first-visit means a new visitor received a stored page.

The header never contains personal data: it names a reason, never a value.

What to check after enabling

Do this once after switching caching on, and again after installing a new theme or a large extension.

As a guest, in a private window:

  1. Open the home page, a category and a product twice each. They must look the same both times.
  2. Change the language and the currency. Prices and texts must follow.
  3. Check product galleries, sliders, menus and the search box.
  4. Add a product to the cart. The cart must show it on every page, straight away.
  5. Complete a test order.

As a signed-in customer:

  1. Sign in and browse. Your name and your account links must appear, and no other customer's.
  2. Sign out and check that the shop shows the guest version again.

In your administration:

  1. Change the price or the stock of a product and save.
  2. Open that product in the shop. The new value must be there at once.

If your shop uses Google Tag Manager, check in its preview mode that your tags still fire after the first interaction.

Measuring your improvement

Performance Pro has no speed meter of its own in the administration. Measure with Google PageSpeed Insights (https://pagespeed.web.dev) on the same three pages before and after: your home page, a category and a product.

  1. Before. With caching turned off, analyse each page three times. Note the mobile and the desktop score and the Largest Contentful Paint.
  2. After. Turn caching on, open each page once yourself, wait a minute and analyse each page three times again.
  3. Compare the averages, mobile with mobile and desktop with desktop.

Leave at least one minute between analyses of the same page, because PageSpeed can show a recent analysis again. A single analysis can vary by several points; three per page give a fair picture.

To start a new comparison later, for example after changing hosting, turn caching off, press Clear cache, and repeat the three steps.

Still need help?

Open a support ticket from your account and our team will look at your store with you.