Static web page

A static web page is delivered to the user exactly as stored.

A static web page (sometimes called a flat page/stationary page) is a web page that is delivered to the user exactly as stored, in contrast to dynamic web pages which are generated by a web application.

Consequently, a static web page displays the same information for all users, from all contexts, subject to modern capabilities of a web server to negotiate content-type or language of the document where such versions are available and the server is configured to do so.

Overview

Static web pages are often HTML documents stored as files in the file system and made available by the web server over HTTP (nevertheless URLs ending with ".html" are not always static). However, loose interpretations of the term could include web pages stored in a database, and could even include pages formatted using a template and served through an application server, as long as the page served is unchanging and presented essentially as stored.

Static web pages are suitable for the contents that never or rarely need to be updated, though modern static site generators are changing. Maintaining large numbers of static pages as files can be impractical without automated tools, such as Static site generators described in Web template system. Any personalization or interactivity has to run client-side, which is restricting.

Advantages of a static website
  • Provide improved security over dynamic websites[1]
  • Improved performance for end users compared to dynamic websites[2]
  • Fewer or no dependencies on systems such as databases or other application servers
Disadvantages of a static website
  • Dynamic functionality has to be added separately

References

  1. "Why use a static site generator? - Jekyll Tips". Jekyll Tips. Retrieved 2017-02-17.
  2. "Why Static Website Generators Are The Next Big Thing – Smashing Magazine". Smashing Magazine. 2015-11-02. Retrieved 2017-02-17.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.