webhintio / hint

💡 A hinting engine for the web
https://webhint.io/
Apache License 2.0
3.61k stars 667 forks source link

[docs] Issue with 'HTTP cache' #4524

Open sluc69 opened 3 years ago

sluc69 commented 3 years ago

https://webhint.io/docs/user-guide/hints/hint-http-cache/index.html

What is the correct header entry for 'stale-while-revalidate' Cache-Control: max-age=3600, stale-while-revalidate=31536000

I have dynamic pages where images are updated and in some case css is added to the to the stylesheet without changing names. I could use cache busting but can't get it configured to be recognized by webhintio

molant commented 3 years ago

What is the format of your cache busting? You should be able to configure it via revvingPatterns and if it doesn't work we should fix it.

sluc69 commented 3 years ago

https://sanlo.info/templates/cassiopeia /css/user.css?dd9b676592f953759bd4438978aa908f https://sanlo.info/templates/cassiopeia/css/global/colors_alternative.min.css?dd9b676592f953759bd4438978aa908f

Check yourself at the home page

On Mon, 3 May 2021 at 01:35, Antón Molleda @.***> wrote:

What is the format of your cache busting? You should be able to configure it via revvingPatterns https://webhint.io/docs/user-guide/hints/hint-http-cache/index.html#custom-regular-expressions-for-revving-files and if it doesn't work we should fix it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/webhintio/hint/issues/4524#issuecomment-830843806, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATY4AWS3MUULNHGFF2JKV6DTLWEO5ANCNFSM437IOMJQ .

Pingger commented 3 years ago

Your headers are correct! The issue lies in this addon: See #3691 and #4325