web development
How to change the version of an npm package associated with a specific tag
If publishing experimental npm packages is a somewhat regular part of your development workflow, you've likely experienced some nerves around publishing that package incorrectly such that it becomes the version that anyone newly installing or upgrading the package gets. If you find that you accidentally did exactly this
Edge Side Includes
A popular use case for edge computing among web and full stack developers is the injection of dynamic content into static assets and pages. This technique increases the performance of our applications by allowing us to cache more of our content at the edge or at the Content Delivery Network
Why are custom headers missing in "304 (Not Modified)" responses?
304 (Not Modified) responses minimize the amount of information that needs to be transferred in subsequent requests made after an initial 200 (OK) response if the resources being requested are unchanged1. This has performance benefits for a website, particularly where larger assets such as images are involved. If you are
Omitting CSS Rules Using the :not Pseudo-class
With the proliferation of design libraries in order to reduce bugs within the UI, create a more consistent user experience, and increase developer velocity in order to get features shipped faster, it’s common to have CSS stylesheets that are more generic in nature. However, like most things, there are
How to Add an SSL Certificate and Custom Namecheap Domain to a Gitlab Pages Site
Adding an SSL certificate and custom Namecheap domain to a GitLab Pages site can be a bit more challenging than it seems. Crucial pieces of the setup information live in sometimes dense documentation across different sites. It can be hard to tell if you’ve set things up correctly given
Determining Whether Your Javascript Object is of Type X
There are times when you’re interested in knowing additional details about the Javascript Object that you’re handling, such as whether you’re handling an Array, Date, or standard Object. However, the typeof operator, when used against these different objects, returns the following results: console.log(typeof [1,2,