{
    "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age",
    "locale": "en",
    "title": "Access-Control-Max-Age: Knowledge hub | DeLaParra Services",
    "description": "How long the browser may cache the preflight response. Avoids OPTIONS round trips.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/access-control-max-age",
        "nl": "https://delaparra-services.nl/nl/kennisbank/access-control-max-age"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.md",
        "json": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.csv",
            "encodingFormat": "text/csv",
            "name": "access-control-max-age.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.json",
            "encodingFormat": "application/json",
            "name": "access-control-max-age.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.md",
            "encodingFormat": "text/markdown",
            "name": "access-control-max-age.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.pdf",
            "encodingFormat": "application/pdf",
            "name": "access-control-max-age.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.zip",
            "encodingFormat": "application/zip",
            "name": "access-control-max-age.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age/skills.zip",
            "encodingFormat": "application/zip",
            "name": "access-control-max-age-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [Access-Control-Max-Age](<https://delaparra-services.nl/knowledge-hub/access-control-max-age>)\n\n  \n\nCategory: HTTP headers \n\n# Access-Control-Max-Age\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is Access-Control-Max-Age?\n\n \n\nAccess-Control-Max-Age: How long the browser may cache the preflight response. Avoids OPTIONS round trips. ` Access-Control-Max-Age ` tells the browser how long it may remember a preflight response, in seconds. During that time, repeated cross-origin requests skip the extra ` OPTIONS ` round trip. Without it, a browser may send a preflight before every single API call that needs one. On a busy single-page application, that can double the number of requests and add noticeable delay, especially on slow mobile connections.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about Access-Control-Max-Age\n\n  \n\n### What should you keep in mind with Access-Control-Max-Age?\n\n \n\nA value of 600, ten minutes, is a reasonable default. Browsers cap it anyway; Chrome allows at most two hours. Set it once your CORS configuration is stable. While you are still changing allowed headers or methods, a long cache can make it look as if your changes had no effect, because the browser keeps using its remembered answer.\n\n    \n\n### What does an example of Access-Control-Max-Age look like?\n\n \n\n```\nAccess-Control-Max-Age: 600\n```\n\n \n\n## At a glance\n\n   CategoryHTTP headers Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More HTTP headers terms\n\n \n\n- [Access-Control-Allow-Headers](<https://delaparra-services.nl/knowledge-hub/access-control-allow-headers>) \n- [Access-Control-Allow-Methods](<https://delaparra-services.nl/knowledge-hub/access-control-allow-methods>) \n- [Access-Control-Allow-Origin](<https://delaparra-services.nl/knowledge-hub/access-control-allow-origin>) \n- [Authorization](<https://delaparra-services.nl/knowledge-hub/authorization>) \n- [Cache-Control](<https://delaparra-services.nl/knowledge-hub/cache-control>) \n- [Content-Length](<https://delaparra-services.nl/knowledge-hub/content-length>)\n\n \n\n[All terms starting with A](<https://delaparra-services.nl/knowledge-hub#letter-a>)\n\n \n\n## Skills\n\n \n\n- ### HTTP headers review\n\n \n\nUse when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.\n\n [View skill](<https://delaparra-services.nl/skills/http-headers-review>) [Download zip](<https://delaparra-services.nl/skills/http-headers-review/download>) \n- ### API Design Principles\n\n \n\nMaster REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.\n\n [View skill](<https://delaparra-services.nl/skills/api-design-principles>) [Download zip](<https://delaparra-services.nl/skills/api-design-principles/download>) \n- ### Chrome DevTools Agent\n\n \n\n'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'\n\n [View skill](<https://delaparra-services.nl/skills/chrome-devtools>) [Download zip](<https://delaparra-services.nl/skills/chrome-devtools/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/access-control-max-age/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [HTTP headers: security, caching and CORS](<https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet. \n- [AI code review](<https://delaparra-services.nl/services#service-05>)\n\nWhen you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/access-control-max-age)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age",
                "name": "Access-Control-Max-Age: Knowledge hub | DeLaParra Services",
                "description": "How long the browser may cache the preflight response. Avoids OPTIONS round trips.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#term",
                    "name": "Access-Control-Max-Age",
                    "description": "How long the browser may cache the preflight response. Avoids OPTIONS round trips.",
                    "termCode": "access-control-max-age",
                    "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age",
                    "inLanguage": "en",
                    "keywords": "HTTP headers",
                    "dateModified": "2026-11-25T17:46:24+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is Access-Control-Max-Age?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "How long the browser may cache the preflight response. Avoids OPTIONS round trips. Access-Control-Max-Age tells the browser how long it may remember a preflight response, in seconds. During that time, repeated cross-origin requests skip the extra OPTIONS round trip. Without it, a browser may send a preflight before every single API call that needs one. On a busy single-page application, that can double the number of requests and add noticeable delay, especially on slow mobile connections."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with Access-Control-Max-Age?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "A value of 600, ten minutes, is a reasonable default. Browsers cap it anyway; Chrome allows at most two hours. Set it once your CORS configuration is stable. While you are still changing allowed headers or methods, a long cache can make it look as if your changes had no effect, because the browser keeps using its remembered answer."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of Access-Control-Max-Age look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Access-Control-Max-Age: 600"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/http-headers-review#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/api-design-principles#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/chrome-devtools#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "Access-Control-Max-Age"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#dataset",
                "name": "Access-Control-Max-Age",
                "description": "How long the browser may cache the preflight response. Avoids OPTIONS round trips.",
                "url": "https://delaparra-services.nl/knowledge-hub/access-control-max-age",
                "identifier": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/access-control-max-age#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "HTTP headers",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:24+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "access-control-max-age.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "access-control-max-age.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "access-control-max-age.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "access-control-max-age.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "access-control-max-age.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/access-control-max-age.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "access-control-max-age-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/access-control-max-age/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}