Cache busting GET calls with cache-control headers

One of the performance optimization techniques is to serve data from the cache and lookup for the network if the cache fails. It’s called cache first then network strategy. Life moves fast and if the API has to get updated information, it’s impossible because we are reading the cache always. Is there a way to bypass cache in this setup? Yes, it’s cache-control headers.

Continue reading

Share this post

Backing up amazon kindle books & understanding DRM

What is amazon kindle & how it stores ebooks

Kindle is an ebook reading device with a browser and other capabilities. The kindle differs from tablets in one thing, i.e. the screen of the kindle is easy on your eyes so you can read for long hours without straining your eyes.

You can download books to kindle and they are available offline. The download happens through 2 modes.

  1. Through wifi, direct download to kindle

  2. Through USB transfer, the book can be downloaded from the amazon site and sideloaded.

Amazon has its ebook format (AWZ3) in which the book gets downloaded to the device and is locked with DRM.

Continue reading

Share this post

Must know terminal commands before touching production servers

I use windows 10 on a day to day basis. My colleagues and friends use windows too. The problem starts when the GUI disappears and we just have SSH access to the production boxes. On a production machine, running one wrong Unix/Linux command could risk your job. Here I am compiling the must know Unix/Linux commands keeping in mind the deployment and operations related tasks.

Continue reading

Share this post

Publishing my first npm package

How does anyone know if their customer got any JS errors/application crashes? How does the operations team know about the crash before the customer screams on email/social media? Finding an answer to this question led to the building of my first npm package.

Continue reading

Share this post