:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
// Static assets skip msw, which otherwise round-trips every request through the page.
const STATIC_ASSET_URL =
/^https?:\/\/[^/]+\/(?!api\/)(?:(?:assets|static|sb-[\w-]+|@fs|@id|@vite|node_modules)\/.*|[^?#]*\.(?:m?js|jsx|tsx?|css|scss|less|woff2?|ttf|otf|png|jpe?g|gif|svg|webp|ico|map|wasm))$/
self.addEventListener('fetch', (event) => {
const url = event.request.url.split(/[?#]/)[0]
if (event.request.method === 'GET' && STATIC_ASSET_URL.test(url)) {
event.stopImmediatePropagation()
}
})
importScripts('./mockServiceWorker.js')