-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache busting plugin #352
Comments
just checking in. any updates on this feature? |
@ajschmidt8 No yet. I'll create a first version in the expiremental plugins repo, for testing. |
Hopefully it could work with any sort of downloadables. We have clients who ask us to link a PDF of theirs on their site, and we do it, then soon after they send another with some small typo fixed. We always manually add a date tag and serial letter like 20231230A, but automation sounds sweet! |
Workaround. Have a export const cacheBuster = `${new Date().getTime()}`; Then, in your template, you can do something like. <link rel="stylesheet" href="/style.css?cb={{ cacheBuster }}"> It doesn't solve every use-case but it's just right for styles and suchlike. |
Thanks, this is just right and I confirm it works!
|
The cache_busting experimental plugin has been upgraded to Lume 2 |
@oscarotero thank you very much for putting the time in to upgrade this. I tried it right away but without success. The error I'm getting is:
How I'm loading:
My deno.json:
I tried adding "import" specifying lume 2.2.2 but it made no difference. I did |
It works fine to me. Are you using the latest version of Deno? Anyway, I've detected some issues in this plugin if it's combined with other plugins like inline or transformImages. So if it doesn't work fine for you, maybe #352 (comment) is a better solution |
Hello - I upgraded Deno but it doesn't change. One repo I tried it on is definitely using transformImages. The other is using the wiki template which I may have added ogImages and favicon plugins to, so, maybe those have an impact. At any rate the other method works for what I need. :) |
Enter your suggestions in details:
Related: #350
A plugin to search links to images, css, videos, etc in the html pages and add a suffix. Then, it adds the same suffix to the files.
The text was updated successfully, but these errors were encountered: