Idle Detection API Demo - Online User Activity Monitor
Request permission and detect when the user is idle (away from keyboard). See screen lock state. For native‑like apps.
UD5 Toolkit
What is an offline page detector?
An offline page detector checks whether a web page can be accessed without an internet connection. It examines browser cache mechanisms like the Cache API (used by Service Workers), HTTP cache, and other storage methods to determine if content is available offline. This is essential for testing Progressive Web Apps (PWAs) and ensuring a smooth user experience even when connectivity is lost.
How does the Cache API differ from regular HTTP cache?
The Cache API is a programmable storage mechanism specifically designed for Service Workers. Unlike HTTP cache which is managed automatically by the browser, the Cache API gives developers full control over what gets cached, when it's updated, and how it's served. HTTP cache follows standard HTTP caching headers (Cache-Control, ETag, Expires), while the Cache API allows for custom caching strategies like Cache-First, Network-First, or Stale-While-Revalidate.
Why would I want to view cached content while online?
Viewing cached content while online is useful for debugging and verification. Developers can confirm that their Service Worker is caching the correct version of assets, compare cached versions against live versions, check for stale content, and ensure offline fallback pages are properly stored. It's also helpful for content auditing and performance optimization.
Can I detect offline availability for any website?
Due to browser security policies (CORS and same-origin restrictions), full detection is limited to same-origin URLs or sites that explicitly allow cross-origin access. For external websites, this tool can perform basic checks like attempting a fetch with cache: 'only-if-cached' mode and inspecting response headers, but cannot read the full cached content of cross-origin resources. For your own website, all features are fully available.
What makes a website fully offline-capable?
A fully offline-capable website typically has: 1) A registered Service Worker with a fetch event listener, 2) Pre-cached critical assets (HTML, CSS, JS, images) using the Cache API, 3) An offline fallback page for uncached routes, 4) Proper cache invalidation strategies, and 5) IndexedDB or similar storage for dynamic data. PWAs that meet these criteria can function seamlessly without internet connectivity.
Is the Cache API available in all browsers?
The Cache API is supported in all modern browsers including Chrome, Firefox, Safari, and Edge. However, it requires a secure context (HTTPS or localhost) to function. On insecure HTTP connections, the Cache API is not available. Additionally, private browsing modes may restrict or clear cache storage more aggressively. This tool automatically detects whether the Cache API is accessible in your current browsing context.
How does the "Simulate Offline" feature work?
When you enable "Simulate Offline" mode, this tool performs all fetch requests using the cache: 'only-if-cached' directive. This tells the browser to only return responses from the cache, refusing any network requests. If a resource is not cached, the fetch will fail — exactly what happens when you're truly offline. This allows you to test offline behavior without actually disconnecting your device.
What's the difference between opaque and non-opaque cached responses?
Non-opaque responses come from same-origin or CORS-enabled cross-origin requests where the server includes appropriate Access-Control-Allow-Origin headers. These responses can be fully read and inspected. Opaque responses result from cross-origin requests made without CORS headers (typically in no-cors mode). While opaque responses can be cached and served offline, their content cannot be read by JavaScript for security reasons — they appear with status 0 and an empty body.
Request permission and detect when the user is idle (away from keyboard). See screen lock state. For native‑like apps.
Upload an MP3 or WAV file and get an estimated beats per minute using onset detection. DJs and musicians can quickly catalog track tempos.
Type a reference (John 3:16) and get the text from a cached King James Version. Works fully offline after first load.
Select a caching strategy and see a flow diagram of how requests are handled. Learn PWA patterns.
Enter a URL and extract the font stacks and web font URLs used on that page. Quick typography research.
See your current push subscription details. Trigger push and notificationclick events manually to debug.
Check if your site has a service worker registered and if it can load offline. Quick PWA readiness assessment.
Paste text and instantly see if it contains hidden zero‑width characters often used in steganography. Reveal invisible payloads.
Explore the contents of the Cache Storage API for your domain. See cached requests and their sizes. Debug offline apps.
Send conditional requests to a URL and verify that the server correctly handles ETag and If‑None‑Match. Audit caching.
Bypass CORS for testing by routing requests through a local service worker proxy. Debug APIs without server changes. Experimental.
Point your camera at an object and see the dominant color in real time. Click to copy the hex. Fun tool for designers.
Simulate different cache strategies (Cache First, Network First, Stale‑While‑Revalidate) and see responses. Learn offline patterns.
Add web content to the device’s content index (like Google Discover). See the indexed items and delete them.
Register a one‑off background sync and see it fire when connectivity returns. Debug service worker sync logic.
Register a service worker, subscribe to push, and send a test notification using a VAPID key pair. Step‑by‑step demo.
Upload an image and instantly see its most dominant color as a hex swatch. Uses color quantization. Local.
See the fundamental frequency (pitch) of your voice in real time using auto‑correlation. For singers and speech training. No upload.
Drop a file to see its MIME type and the first few magic bytes (hex and ASCII). No upload, works instantly.
Convert between currencies using manually updated or default rates. Great for estimation when offline. Local settings.
Analyze text for subjective and emotionally charged words. Helps identify potential bias in writing. Purely heuristic, local operation.
Upload a text file to detect its character encoding (UTF-8, ISO-8859-1, etc.) and BOM presence. Runs entirely in your browser.
Detect your current screen resolution, viewport dimensions, and device pixel ratio. Useful for responsive design testing. No data collection.