sysgears / grain

Grain is a lightweight and powerful static website generator with custom themes to help create static, SEO-friendly websites or a blog in no time.
https://sysgears.com/grain
Other
160 stars 30 forks source link

Cache Busting #19

Closed rpalcolea closed 8 years ago

rpalcolea commented 8 years ago

Hi!

I have one question, what's the best way to do cache busting with Grain? Is there a way you recommend?

I know that one part should be done at server level to add the proper headers in the response for cache, but what about add version to the JS/CSS/images URLS? Is that a thing we could do with Grain?

This is more to know if you could recommend / give and advice of how to handle that. I usually work with Grails and leverage that to asset-pipeline.

Thanks

larixer commented 8 years ago

Hi Roberto,

Yes, you can do this with Grain. We do it for website of our company. To explain how you can do it we need some time, because the answer is not trivial. Please post this question into Grain User Group so that the answer were accessible for all Grain Users, thanks! https://groups.google.com/forum/#!forum/grain-user

Victor

rpalcolea commented 8 years ago

Thanks @vlasenko https://groups.google.com/forum/#!topic/grain-user/rdZYbNnfucM