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:
- Open a page of your shop in a private browser window.
- Open the browser's developer tools with F12 and choose Network.
- Reload the page and click the first line of the list.
- Among the response headers, look for
X-Performance-Pro.
| Value | Meaning |
|---|---|
HIT | A stored page was served. This is the fast path. |
MISS | OpenCart built the page and it has just been stored. The next matching visit gets a HIT. |
BYPASS | The 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
| Reason | Meaning |
|---|---|
| none | The 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. |
off | The Pages category is off. |
session | The page prints something that belongs to this visitor's session. |
cookie: and a name | The page sets that cookie, usually from another extension. |
no-store | OpenCart or another extension marked the page as not cacheable. |
private | The page is marked as private. |
status | The answer is not a normal page: a redirect, a "not found" page or an error. |
token | The page contains a form with a security token or a password field. |
nonce | The page uses a content security policy with one-time values. |
size, document, type, header | The 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:
- Open the home page, a category and a product twice each. They must look the same both times.
- Change the language and the currency. Prices and texts must follow.
- Check product galleries, sliders, menus and the search box.
- Add a product to the cart. The cart must show it on every page, straight away.
- Complete a test order.
As a signed-in customer:
- Sign in and browse. Your name and your account links must appear, and no other customer's.
- Sign out and check that the shop shows the guest version again.
In your administration:
- Change the price or the stock of a product and save.
- 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.
- Before. With caching turned off, analyse each page three times. Note the mobile and the desktop score and the Largest Contentful Paint.
- After. Turn caching on, open each page once yourself, wait a minute and analyse each page three times again.
- 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.