hint icon indicating copy to clipboard operation
hint copied to clipboard

[docs] Issue with 'HTTP cache'

Open sluc69 opened this issue 4 years ago • 3 comments

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

sluc69 avatar May 02 '21 10:05 sluc69

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.

molant avatar May 02 '21 17:05 molant

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 .

sluc69 avatar May 09 '21 09:05 sluc69

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

Pingger avatar Sep 14 '21 20:09 Pingger