2020-01-23
2322
Michal Zalecki
12707
Jan 23, 2020 ⋅ 8 min read

Caching headers: A practical guide for frontend developers

Michal Zalecki Senior Engineer at @Tooploox 💎, smart contracts, fan of hackathons, React Wrocław meetup organizer.

Recent posts:

Actix Web Adoption Guide: Overview, Examples, And Alternatives

Actix Web adoption guide: Overview, examples, and alternatives

Actix Web is definitely a compelling option to consider, whether you are starting a new project or considering a framework switch.

Eze Sunday
Mar 18, 2024 ⋅ 8 min read
Getting Started With NativeWind: Tailwind For React Native

Getting started with NativeWind: Tailwind for React Native

Explore the integration of Tailwind CSS with React Native through NativeWind for responsive mobile design.

Chinwike Maduabuchi
Mar 15, 2024 ⋅ 11 min read
Developing A Cross Platform Tv App With React Native

Developing a cross-platform TV app with React Native

The react-tv-space-navigation library offers a comprehensive solution for developing a cross-platform TV app with React Native.

Emmanuel Odioko
Mar 14, 2024 ⋅ 10 min read
Essential Tools For Implementing React Panel Layouts

Essential tools for implementing React panel layouts

Explore some of the best tools in the React ecosystem for creating dynamic panel layouts, including react-resizable-layout and react-resizable-panels.

David Omotayo
Mar 13, 2024 ⋅ 8 min read
View all posts

3 Replies to "Caching headers: A practical guide for frontend developers"

  1. This is amazing and so valuable. Been looking for something like this to properly setup my headers. Thanks for the write up.

  2. Hi Team,

    I have added below code for caching but it’s not working, please suggest.

    location ~* \.(jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc|svg|woff|woff2|ttf)\$ {
    etag on;
    if_modified_since exact;
    expires 30d;
    #add_header Pragma “public”;
    add_header Cache-Control “public, no-transform”;
    }

    Regards,
    Mel

  3. For SPA html – is it enough to use meta tag headers to tell the browser not to cache? Are they reliable? Or I must setup response headers on the server?

Leave a Reply