More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Repair HTTP Cache Revalidation Bugs

    1

    Diagnose and repair HTTP cache revalidation, validators, 304 responses, Vary behavior, and cache freshness.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair HTTP Cache Revalidation Bugs

    Repair HTTP Cache Revalidation Bugs

    Example session with this skill installed

    Our Node.js API is returning 200 OK for every request even when the client sends If-None-Match. The ETag is generated from the DB version string. Why is revalidation failing?

    • Read your context and instructions
    • Compiled the repair http cache

    I have analyzed your ETag revalidation flow. The issue stems from a mismatch between the quoted ETag string expected by HTTP semantics and the raw version string being compared in your middleware, coupled with a missing 304 status assignment.

    Cache Revalidation Diagnosis & Fix

    ComponentStatusObservation
    ETag GenerationValidUses DB versioning, which is a reliable source of truth.
    Header ParsingFailedMiddleware is comparing if-none-match against version without handling double quotes.
    Response LogicFailedLogic falls through to the main controller instead of short-circuiting with a 304.

    Proposed Repair (Node.js/Express)

    app.use((req, res, next) => {
      const resourceVersion = getResourceVersion(); // e.g., "v123"
      const etag = `"${resourceVersion}"`; // ETags must be wrapped in quotes
      
      res.setHeader('ETag', etag);
      res.setHeader('Cache-Control', 'public, no-cache'); // Force revalidation
    
      const ifNoneMatch = req.headers['if-none-match'];
    
      // Repair: Handle weak ETags and quoted string comparison
      if (ifNoneMatch === etag || ifNoneMatch === `W/${etag}`) {
        // Critical: You must set the status AND end the response
        return res.status(304).end();
      }
    
      next();
    });
    

    Next steps

    • Verify if your CDN (e.g., Cloudflare) is stripping the ETag header due to specific "Email Obfuscation" or "Rocket Loader" settings.
    • Run a curl -I -H 'If-None-Match: "v123"' https://api.example.com/resource test to confirm the 304 response.
    • Ensure the Vary header includes Accept-Encoding if your ETag changes based on compression.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Repair HTTP Cache Revalidation Bugs targets production and repository defects around diagnose and repair HTTP cache revalidation, validators, 304 responses, Vary behavior, and cache freshness.. It examines ETag strength and generation, If-None-Match and If-Modified-Since precedence, 304 response metadata, Vary and authorization/tenant dimensions, stale-while-revalidate behavior, proxy/CDN versus application cache ownership, content encoding and validator consistency, cache invalidation tests and observability, then establishes one explicit repair contract and focused deterministic validation.

    The skill works from repository access or partial evidence such as snippets, logs, configuration, traces, and architecture notes. It preserves existing product/security policy, avoids invented execution claims, and keeps production systems, real credentials, and deployment outside the validation path.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Requires specific HTTP headers or implementation snippets to provide accurate diagnoses. Does not perform live network scanning or production traffic interception.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 2 months ago

    Permissions

    Terminal / Shell
    Listed2 months ago
    Updated9 days ago

    What's inside

    Frequently Asked Questions

    This skill systematically analyzes ETag generation, If-None-Match/If-Modified-Since logic, and Vary header dimensions to fix 304 Not Modified failures and stale content delivery.

    It is designed for any AI agent with repository access or the ability to process technical snippets, including popular LLM-based coding assistants and automated CI/CD agents.

    No, the skill operates on a non-executable analysis model, using your provided logs, traces, and code to diagnose issues without ever needing access to your production environment or live credentials.

    You receive a specialized logic package that includes diagnostic patterns for cache revalidation and a framework for establishing deterministic validation tests to prevent future regressions.

    The skill is highly effective at identifying 'Vary' header conflicts and tenant-isolation bugs that often cause proxies or CDNs to serve the wrong cached version to different users.

    New in APIs & Backend