SEO & Static Assets Across Thin Clients
On this page 7 sections
Search engines and link-preview services need stable, publicly reachable pages and assets. QSCS can deliver these through a registered origin and its response cache, or serve files from a node's static-pages directory when the hostname has no registered origin. Choose the delivery path deliberately and verify it across every public endpoint.
1. Choose how to serve public content
| Delivery path | Benefits | Responsibilities |
|---|---|---|
| Registered origin and response cache | Publish content in one place. Keep the application's status codes, content types and response metadata. Eligible responses can be cached and replicated between nodes. | Configure the origin and cache policy, make crawler routes public, and verify that changes reach the serving nodes. |
| Static-pages directory | Serve a small public site or standalone assets directly from local disk, without an application backend for that hostname. | Distribute real files to every serving node. Manage updates and MIME types. These disk files are not replicated by the response-cache mechanism. |
A registered origin takes the normal origin/proxy route. The static directory is not an override or an outage fallback for that origin. For an unregistered hostname, the listener checks the static directory first, then its bootstrap response cache, and finally returns a small health-check response. Removing a local file does not create an origin route.
2. Prepare the SEO surface
- Page content: return meaningful HTML, a descriptive title and description, and a canonical URL. Use server-rendered or pre-rendered content where appropriate. Automatic runtime injection and browser delta navigation do not generate SEO metadata or turn an empty application shell into rendered content.
- URLs and status codes: keep public URLs stable, redirect retired URLs to the relevant replacement, and return the intended status for missing pages. Check the response body as well as the status: the listener's unregistered-host health response is not a published page.
- robots.txt: serve one consistent policy at the hostname root and link to the sitemap. Crawling rules are not access control; keep private account and API routes protected by the identity gate and application authorisation.
- Sitemaps: list canonical, publicly reachable URLs using absolute HTTPS addresses. Keep modification dates accurate and avoid listing private pages, redirects or missing resources.
- Icons and previews: reference the favicon and social-preview images explicitly in the HTML. Serve the correct image type and check redirects and regional responses. Include app icons and manifests if the application uses them.
- Structured data: where applicable, describe the visible page content using the search engine's supported vocabulary. QSCS transports the application response; it does not invent structured data.
- Optional discovery files: publish
llms.txtor other machine-readable summaries if useful for your audience. Their presence does not guarantee indexing or inclusion in AI answers.
The homepage, crawler files and referenced assets must be reachable without signing in. Check this using an anonymous request, not only a browser with an existing identity.
3. Serve and cache through the origin
Register the public hostname and backend, publish the content at that backend, and use cache-eligible routing when you want QSCS response caching. The Proxy every request setting takes the direct upstream path instead. Origin delivery preserves upstream content types, which makes it a suitable choice for SVG, ICO, PNG, WebP, XML and other assets.
Ordinary TTL reuse follows supported Cache-Control directives with a bounded lifetime. Directives such as private, no-store and no-cache disable ordinary shared reuse. A successful, non-empty response must also meet the cache's other eligibility checks; not every response is stored.
Refreshing the backend file does not itself erase previously cached responses. Verify the canonical URL through the serving nodes after publication. A browser hard refresh is not a cluster-wide invalidation operation. The ordinary listener path does not forward the request's cache-control directives to the interpreter, so do not rely on a no-cache request to refresh a persisted copy. Use stable favicon URLs and versioned filenames for application assets where appropriate.
For an identity-gated origin, the listener already treats a defined set of bootstrap paths and extensions as public for GET/HEAD requests. Other public routes can be declared by placing a matching file beneath [Static Pages] Path. With a registered origin, that file acts as a public-route marker: the response still comes through the origin/cache path. A zero-byte marker is suitable for this purpose, but would serve an empty file if the hostname were no longer registered. Never place markers for private API or account-data endpoints.
4. Use the static-pages directory
[Static Pages]
Path = /opt/qscs/pages
The configured path is authoritative; it may differ between installations. Files are scoped by the requested hostname:
/opt/qscs/pages/
└── example.com/
├── index.html
├── about.html
├── robots.txt
├── sitemap.xml
└── favicon.svg
For a hostname without a registered origin, / resolves to index.html, /about to about.html, and /robots.txt to the same filename beneath the host directory. A trailing slash is significant: /about/ resolves to about/.html, not about/index.html. Publish or redirect the exact URL shape you use. Path traversal and symlinks escaping the configured root are rejected.
The local responder recognises HTML, JSON, CSS and JavaScript MIME types. Other extensions currently default to text/plain; charset=utf-8. For images, XML and other formats requiring a specific type, use an origin or a front-end static server configured with the correct MIME mapping. Local disk responses do not acquire the origin response cache's replication and freshness policy.
Maintain one versioned source and deploy the same intended files to each serving node. Stage and verify a release before switching it into place; keep rollback copies outside the public root. Remove obsolete files through a scoped deployment process. Do not run a broad directory deletion against a root that also contains unrelated hostnames or public-route markers.
5. Verify every public endpoint
Test the actual public hostname with TLS verification enabled. To select a node without changing DNS:
curl --fail --show-error --resolve example.com:443:203.0.113.10 \
--dump-header /tmp/asset.headers \
--output /tmp/asset.body https://example.com/favicon.svg
sha256sum /tmp/asset.body
Repeat for each serving address and compare status, redirects, content type and body hash. Also test the homepage, robots.txt, sitemap and preview images. For HTML with legitimate per-response changes, compare the rendered content and metadata rather than requiring an identical whole-page hash. Inspect X-QSCS-Cache, X-QSCS-Mode and Age where present to understand which response path was used.
Check each hostname separately, including any www alias. The hostname controls origin routing and the static subdirectory. A successful request to a node's own address does not prove the public hostname is configured correctly.
6. Publish an asset update
- Identify whether the hostname is registered as an origin, and read the active static-directory setting.
- For origin delivery, update the canonical backend asset and verify it directly. For disk delivery, deploy the replacement file and its MIME configuration to every serving node.
- Move obsolete local copies and backups outside the public roots. Keep any public-route declarations needed for a gated origin; removing a marker can require authentication for that route.
- Verify the unchanged public URL across regions and refresh the relevant cached representation if it remains stale. Deleting disk files does not invalidate the response cache, browsers or search-engine caches.
- Check the HTML references, canonical metadata, sitemap and crawler access after the update.
7. Favicons and search-engine refreshes
Declare a stable icon URL in the homepage:
<link rel="icon" href="/favicon.svg" type="image/svg+xml" sizes="any">
If clients also request /favicon.ico, serve a valid ICO or redirect that URL to the current supported icon. Do not serve SVG bytes with an ICO content type. Avoid conflicting old icon declarations or files that vary by region.
Google recommends a square favicon, a stable URL, and crawlable homepage and icon resources. Once the public responses are correct, its displayed icon can still lag while it recrawls and processes the change. Search Console can request homepage indexing; it does not guarantee immediate replacement. Different search and preview surfaces may refresh independently, so a new icon in one preview does not prove every result has updated. See Google's favicon guidance.
See also: Static Pages API, Configuration Reference, and Browser Substrate & WASM Bootstrap.