Skip to main content

Cache-Control Directives

· 14 min read
Phan Thanh Sang
Front End Engineer @ Sea Limited

Caching is one of the most powerful tools for optimizing web performance. The Cache-Control HTTP header provides fine-grained control over how browsers and intermediary caches store and reuse HTTP responses. In this article, we'll explore the most important Cache-Control directives and understand when and how to use them effectively.

Why You Should Use MJML for Email Templates

· 4 min read
Phan Thanh Sang
Front End Engineer @ Sea Limited

Creating responsive and visually appealing email templates can be a daunting task, especially given the wide variety of email clients and devices in use today. MJML (Mailjet Markup Language) offers a solution to this challenge by simplifying the process of designing responsive email templates. Here are several reasons why you should consider using MJML for your next email template project.

What is debounce

· 3 min read
Phan Thanh Sang
Front End Engineer @ Sea Limited

Debouncing is a technique used in electronics and software development to ensure that only one signal or event is registered despite multiple signals or events occurring. It's commonly applied in situations where mechanical contacts (like buttons or switches) are involved, which can generate multiple signals due to bouncing.

What is throttle

· 2 min read
Phan Thanh Sang
Front End Engineer @ Sea Limited

Throttling is a technique used in software development to control the rate at which a function is executed. This is particularly useful when dealing with events that can fire frequently, such as window resizing, scrolling, or keystrokes, to ensure that the function is not called too often, potentially causing performance issues.

VSCode shortcuts

· 2 min read
Phan Thanh Sang
Front End Engineer @ Sea Limited

If you are an engineer that interact with code all the time you might want to get used to what ever editor shortcuts that you might use like VIM, Jetbrain, sublime text, or nano (anyone still use those)?

This is shortcuts for non of the above, VSCode.