DEV Community

Discussion on: Help speeding up website / Mobile View

 
pavelloz profile image
Paweł Kowalski • Edited

Ouh, and someone else in comments noticed something important, it looks like cache headers are weird in most assets:

cache-control: public, max-age=0, must-revalidate

This kind of sucks because browser cannot cache those assets even if they didnt change, so subsequent page views are not benefiting from browser cache.

Thread Thread
 
johanneslichtenberger profile image
Johannes Lichtenberger

Oh, this must be a Jekyll setting somewhere, maybe :(

Thread Thread
 
johanneslichtenberger profile image
Johannes Lichtenberger

It was Netlify, which adds this Header... I had to use a Jekyll plugin:

github.com/jgarber623/jekyll-netli...