Skip to content
GoldenEye Digital
Back to blog
Infrastructure 2 min read

How we built this site

Server-rendered HTML, React only where it's needed, no cookies and strict security headers. Our decisions and why.

A software company's website is the first evidence of how it works. So we built goldeneyedigital.com the way we recommend to our clients. Here are the decisions and the reasons behind them.

Pages are rendered on the server

The site is built with ASP.NET Core. Every page is rendered on the server as complete HTML. The browser gets all the content in the first response, and search engines don't need to run JavaScript to read it.

We could have built a single-page React app. But a company website is mostly read, with little interaction. Tying every page to JavaScript slows the first load and makes search engines wait.

React only where it's needed

We use React where interaction is needed: the eye on the home page, the product filter and the contact form. They sit in the page as “islands”, and React is only downloaded when a page has one. Plain content pages such as blog posts run nothing more than a script of about 1 KB.

Tailwind CSS and one design language

Styles are written with Tailwind CSS. Colours, typefaces and spacing are defined in a single theme. Unused styles aren't generated; the whole site's CSS is a few KB compressed.

No cookies, no tracking

The site sets no cookies and uses no advertising or analytics trackers. The last part of the IP address from the contact form is removed before it's stored. Less data means less responsibility.

Strict security headers

Every response carries a Content Security Policy: the browser only runs scripts and styles from our own domain, and inline scripts are not allowed. We also send HSTS, X-Content-Type-Options, Referrer-Policy and Permissions-Policy.

On our own server

The site runs on the same infrastructure as our products, as its own service behind Nginx. The certificate renews automatically and the server is monitored.

If you want your site or application built this way, let's talk.

Have something in mind?

Write to us. An engineer reads your message and replies.

Let's talk