CDN can cache and serve static resource.
Dynamic web site can:
Another benefit of hosting static components on a cookie-free domain is that some proxies might refuse to cache the components that are requested with cookies.
On a related note, if you wonder if you should use example.org or www.example.org for your home page, consider the cookie impact. Omitting www leaves you no choice but to write cookies to *.example.org, so for performance reasons it's best to use the www subdomain and write the cookies to that subdomain.
Static to Dynamic
Dynamic to Static
A generator transforms a dynamic website to a static one.
A dynamic website can be turned into a static web application with a generator.
A generator will generate static resources (pages, image, …) from dynamic component (sort of template engine for instance, one page is generated by product)
|Server Needed||Method||When will the static generation occurs|
|No||Web - Prerendering / Snapshoting (Dynamic to Static Web Site Generation)||build time|
Template to static
Generator from template create in a markup language such as markdown.