Cache and performance check for Adobe Experience Manager sites avatar

Cache and performance check for Adobe Experience Manager sites

Pricing

from $18.00 / 1,000 page checkeds

Go to Apify Store
Cache and performance check for Adobe Experience Manager sites

Cache and performance check for Adobe Experience Manager sites

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.

Pricing

from $18.00 / 1,000 page checkeds

Rating

0.0

(0)

Developer

Ed Rayyis

Ed Rayyis

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

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:

{
"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:

{
"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.

From the same account, for checking a site:

Support

Questions and problems: the Issues tab on this page.