Monthly Archives: October 2017

Notes on React & ES6

There are two modes for development: Single Page Applications, Multi Page Applications Build Workflow Dependency Management Tool: npm or yarn Use Bundler: Webpack Compiler: Babel + Presets Use Development Server (Docker preferrably) Single Page Applications (SPA) For React 16, I like to scaffold a new project using the create-react-app CLI: npm install -g create-react-app Multiple […]

MD5 Hashing for JavaScript

Gravatar requires the usage of MD5 hasing when it comes to pulling images from their website.  To accomplish this, I’ve implemented several MD5 plugins from different authors. The plugin that integrated nicely (with no console errors) was JavaScript MD5. To implement this on an Angular Component/Service: import { Component } from ‘@angular/core’; var md5 = […]

Setting Cache-Control Header

Google PageSpeed Insights is giving me one of the criterias that requires some work: Leverage browser caching I’m using Amazon S3 + CloudFront to serve my static assets.  To set the HTTP headers for Cache-Control, I used an application on Windows called “CloudBerry Explorer for Amazon S3”. The application lets me manage many different types […]