Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Pascal Lindelauf Newcomer
@plind · Joined 8 years ago · 5 posts · 1 topics · 0 reputation
Badges
Recent posts
-
Is there a way to add custom attributes to an image using {{ image.html }}?
· 6 years ago
Sounds exciting! 👍
-
Is there a way to add custom attributes to an image using {{ image.html }}?
· 6 years ago
Blockquote Although, you can manually add your HTML image code <img href="..." loading="lazy" > in the markdown/twig files. Oh, that is what I've been looking for! But how do I correctly refe
-
How to set Cache-Control for images?
· 8 years ago
I've decided to try and see if NGINX could be used to set the proper cache-control. I ran into this sample NGINX config file and used the rules for assets, images and fonts to add cache-control header
-
How to set Cache-Control for images?
· 8 years ago
Yes, it is, but that does not affect cache-control settings. In addition, cache-control settings do not only apply to images, but also to other assets, like JS and CSS files. So there should be a way
-
How to set Cache-Control for images?
· 8 years ago
All the images served by Grav have "Cache-Control: no-cache" on them. This gives us a bad performance rating. The configuration documentation suggests you could set the cache_control setting, but I've