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:

Using Aoi Js To Build A Bot For Discord

Using aoi.js to build a bot on Discord

Explore how the aoi.js library makes it easy to create Discord bots with useful functionalities for frontend applications.

Rahul Padalkar
Apr 17, 2024 ⋅ 9 min read
Web Components Adoption Guide: Overview, Examples, And Alternatives

Web Components adoption guide: Overview, examples, and alternatives

Evaluate Web Components, a set of standards that allow you to create custom HTML tags for more reusable, manageable code.

Elijah Asaolu
Apr 16, 2024 ⋅ 11 min read
Using Aws Lambda And Aws Cloudfront To Optimize Image Handling

Using AWS Lambda and CloudFront to optimize image handling

Leverage services like AWS Lambda, CloudFront, and S3 to handle images more effectively, optimizing performance and providing a better UX.

Nitish Sharma
Apr 12, 2024 ⋅ 12 min read
Building Web-Based Terminal Components With Termino.js

Building web-based terminal components with Termino.js

Explore Termino.js, an open source library for integrating web-based terminals into applications, in this introduction article.

Chibuike Nwachukwu
Apr 11, 2024 ⋅ 6 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