# Cache and performance check for Adobe Experience Manager sites (`examsens.ai/cache-performance-check`) Actor

After a release, check whether browsers can keep your Adobe Experience Manager pages' files. For each page and the JavaScript and CSS it loads from the site's own library folder, it shows how long browsers are told to keep each file, whether its address changes with each release, and page size.

- **URL**: https://apify.com/examsens.ai/cache-performance-check.md
- **Developed by:** [Ed Rayyis](https://apify.com/examsens.ai) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $18.00 / 1,000 page checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Cache and performance check for Adobe Experience Manager sites

Give it a list of pages on an Adobe Experience Manager site. The actor opens each page in a browser and records every file the page loads. It reports how long browsers and the CDN are told to keep the page's HTML (its Cache-Control header), and the same for each client library, the JavaScript and CSS files Adobe Experience Manager serves from `/etc.clientlibs/`. For each client library it also checks for a version hash in its address, a minified name and compression. The row then says which kind of Adobe Experience Manager setup those addresses and headers fit, such as Adobe Experience Manager as a Cloud Service, and how many bytes the page transferred in total.

It reads only what the page itself loads, plus one second request for the same page address. It never requests an admin path, a login page or any address the page didn't load.

This actor is not affiliated with, authorized, endorsed or sponsored by Adobe, publisher of Adobe Experience Manager. Adobe and Adobe Experience Manager are either registered trademarks or trademarks of Adobe in the United States and/or other countries.

### Use it for

You've just deployed a release and want to know the CDN will still cache it. Run the pages you care about and read the client library rows: each one shows its Cache-Control header, and a client library address without an `lc-` hash is flagged, because a browser can't keep it for long and still pick up your next change.

If you've inherited a site and don't know whether it runs on Adobe Experience Manager as a Cloud Service or an older install, read the `delivery` field. It lists what the addresses and headers show and which setup they're consistent with, so you can see what that reading rests on before you take it as the answer.

### Sample

Input, two pages of Adobe's WKND reference site:

```json
{
  "urls": [
    { "url": "https://wknd.site/us/en.html" },
    { "url": "https://wknd.site/us/en/magazine.html" }
  ],
  "maxConcurrency": 1
}
```

The run returned two rows. Every client library on both pages has an `lc-` hash in its address, is minified and sends `immutable`, so none of them is flagged. Both pages went over the 3 MB default weight limit: the home page transferred 4,563,988 bytes in 44 requests, 4,282,746 of them images. The home page row, trimmed to its delivery, HTML and issue fields:

```json
{
  "url": "https://wknd.site/us/en.html",
  "ok": true,
  "status": 200,
  "delivery": {
    "signals": [
      "client library addresses with an lc- hash selector (strict client library versioning, on by default in Adobe Experience Manager as a Cloud Service)",
      "client libraries served from /etc.clientlibs/",
      "an x-vhost response header (publish)"
    ],
    "consistentWith": "Adobe Experience Manager as a Cloud Service"
  },
  "document": {
    "cacheControl": "max-age=300,stale-while-revalidate=3600",
    "age": "209",
    "xCache": "HIT",
    "contentEncoding": "gzip"
  },
  "issues": [
    {
      "check": "pageWeight",
      "message": "The page transferred 4,563,988 bytes in 44 requests, over the 3,000,000 byte limit you set."
    }
  ]
}
```

The `largest` list in the same row names the biggest file, an 866,548 byte PNG image, so you know where the weight comes from.

### What it reports for each page

- For the HTML response, the page's Cache-Control, Age, cache status header, Content-Encoding and Vary.
- Each JavaScript and CSS file served from `/etc.clientlibs/`, with its versioning (`lc` for the long cache form, or `none`), whether its name holds `.min.`, its Cache-Control, its Content-Encoding and its size.
- In `delivery`, the signals found in the addresses and headers, and the setup they're consistent with. An `lc-` hash points to Adobe Experience Manager as a Cloud Service, where strict client library versioning is on by default. The actor reads this from the addresses only and never asks the server.
- The page weight: requests and bytes by type (document, script, stylesheet, image, font and the rest), plus the largest files with their Cache-Control.
- A second request for the same address, with its status, Age, cache status and Cache-Control, so you can see whether a cache answered it.

### Issues it flags

- The HTML has no Cache-Control, or a Cache-Control with `private`, `no-cache` or `no-store` (the Adobe Experience Manager as a Cloud Service CDN doesn't cache those responses), or one with no freshness time.
- A long cache `lc-` client library sends a Cache-Control that has no `immutable` and a `max-age` under 30 days. These files should send `immutable`, or 30 days for older browsers that ignore it.
- A client library address has no version hash.
- A client library's name has no `.min.`, so it isn't minified.
- The HTML has no Content-Encoding, or a client library over 1,500 bytes has none, so it isn't compressed.
- The page transferred more than the weight limit you set.

### Input

- Page addresses (required)
- Page weight limit in MB (default 3), largest files to list (default 5), seconds to wait after load (default 3), page timeout (default 45 seconds), pages at once (default 2)

### Output

One dataset row per page with `url`, `ok`, `status`, `finalUrl`, `document`, `clientLibraries`, `delivery`, `weight`, `secondRequest`, `issues` and `issueCount`. A page that can't be opened gets `ok: false` and an `error`. The run's key value store holds a `SUMMARY` record with the counts of pages, failed pages and pages with issues.

### Pricing

Pay per event: one event for each page checked. A page that can't be opened is not charged. The run stops when it reaches the maximum charge you set.

### Scope and conduct

Only public pages are opened. The actor doesn't log in, fill in forms, accept banners or probe any path the page doesn't load. Each page opens in a fresh browser context with no cookies carried over. It uses no proxies. Check sites you're allowed to check. A CDN can answer a browser in one data center differently from a visitor elsewhere, so the cache headers are the ones your run saw.

### Related actors

From the same account, for checking a site:

- [Tagging audit for Adobe Analytics and Adobe Experience Platform Web SDK sites](https://apify.com/examsens.ai/tagging-audit)
- [Lighthouse Audit: bulk speed, SEO and accessibility scores](https://apify.com/examsens.ai/lighthouse-audit)
- [Site Audit: on page SEO and broken link checks](https://apify.com/examsens.ai/site-audit)

### Support

Questions and problems: the Issues tab on this page.

# Actor input Schema

## `urls` (type: `array`):

Public pages to open. The actor reads only what each page loads and requests no other paths.

## `maxPageMegabytes` (type: `integer`):

A page that transfers more than this is flagged.

## `largestResources` (type: `integer`):

How many of the page's largest files to list in each row.

## `settleSecs` (type: `integer`):

Requests made in this time after the page loads are counted.

## `timeoutSecs` (type: `integer`):

A page that doesn't finish loading in this time is reported as an error.

## `maxConcurrency` (type: `integer`):

How many pages are opened in parallel.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://wknd.site/us/en.html"
    }
  ],
  "maxPageMegabytes": 3,
  "largestResources": 5,
  "settleSecs": 3,
  "timeoutSecs": 45,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        {
            "url": "https://wknd.site/us/en.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("examsens.ai/cache-performance-check").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [{ "url": "https://wknd.site/us/en.html" }] }

# Run the Actor and wait for it to finish
run = client.actor("examsens.ai/cache-performance-check").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    {
      "url": "https://wknd.site/us/en.html"
    }
  ]
}' |
apify call examsens.ai/cache-performance-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,examsens.ai/cache-performance-check"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/W7dhuceskudgXqKma/builds/BWGoBTIrOsf0nVcne/openapi.json
