Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.


Support
Forums

Hosting Websites for Free

There seem now to be a number of free services that allow you to host static websites, however as static websites seem to be a little bit old hat I’ve not paid them much attention, until now. It occurred to me that it’s possible to generat...

There seem now to be a number of free services that allow you to host static websites, however as static websites seem to be a little bit old hat I’ve not paid them much attention, until now.

It occurred to me that it’s possible to generate a static website from a dynamic site (like WordPress), then automatically mirror the static version to a free static hosting account, maybe updating it daily.

Pro’s

  • It’s free
  • It’s super quick and very resilient to DDOS attacks etc
  • You don’t need a (relatively expensive) WordPress server on the Internet (desktop will do)
  • It’s unhackable (directly) because it’s just static pages

Con’s

  • You (initially) lose dynamic features like logging in, comments, feedback forms
  • … ?

Experiment

Process as follows;

  • Set up an experiment using my recently created Local WordPress / Containers setup.
    (as documented in the HOWTO’s)

  • Added the simply static plugin to generate a static version of the site in a local folder.

  • Created a GitLab project

  • Added the local folder containing the static folder to the GitLab project.

  • Created a new project in CloudFlare Pages (which is one of the aforementioned free services)

  • Created a new CloudFlare project

  • Connected the CloudFlare project to the GitLab project

  • Clicked Publish

Results

On the static version I turned off the preloader to make the loading speed more visible. Would be interested in feedback / how it looks to others.

  • better with / without pre-loader?
  • is the speed noticeable?
  • apart from feedback forms, any noticeable downsides?

Updating the (static) site involved making a change on WordPress, then clicking Deploy in Simply Static … (the rest is done with automated hooks) … total publication (update) time on a small site like that seems to be around 1-2 mins.

Might try it on Linux.uk, although it’s a larger site … maybe be somewhat slower to update …

Edit: static version of Linux.uk

linux

5 posts - 2 participants

Read full topic

About the author

Mad Penguin

Mad Penguin is a Linux forum administrator and moderator.