Comments (4)
- Add an option not to check for file existence (I have a case in my project where I actually need that)
I have created a separate ticket for this
- Don't check tag type. Take everything that has a src or a href, e.g:
I'd rather not be checking for all href's as this will bust all elements rather than just stylesheets/favicons
e.g.
<a href="/search?term=thing">Link</a>
// Would become
<a href="/search?a52baf7sjb2b2a">Link</a>
- If you implement the second request then this is obsolete, but if you won't then this should be fixed:
I've created a separate ticket for this as well
Thanks for the comments. I'll leave this ticket open for a little bit incase you think of anything else, else feel free to close it :)
from grunt-cache-bust.
Actually, #20 is already implemented as it currently filters all scripts to check it has a src
attribute
from grunt-cache-bust.
These are now in v0.0.10
from grunt-cache-bust.
Thanks for quick reply!
- Yeah, probably you have a point there. But I would still like to have the possibility to add my own tags for busting. Say something like:
options: {
customTags: [ 'audio', 'link[rel="myownspecialtag"]' ]
}
- Another thing that I noticed is that you have a baseDir, but maybe it just makes sense to take default baseDir relative to the html file that is being processed? Because now I have to specify baseDir for each html file separately.
from grunt-cache-bust.
Related Issues (20)
- Change in referenced file not propagating HOT 1
- Error in replaceInFile HOT 2
- Upgrading from 1.4.1 to 1.5.0 causes crash on cache bust
- Is this project dead ? HOT 7
- Cache bust generates triple query param HOT 1
- URLs with fragments are not replaced in files
- Custom Algorithm To Generate One Hash For All Files HOT 1
- After Upgrading from 1.4.1 to 1.6.0 the tags in my layout file gets no more busted HOT 3
- Nested references not updating
- Help configuring to replace references. HOT 3
- Allow to configurate optional domain for absolute paths HOT 4
- "0 files busted" although it did work
- When runngin Grunt : SyntaxError: Unexpected token ... HOT 1
- References in Subfolders not getting updated HOT 4
- Support for Grunt files[].dest option
- Merge option for manifest
- Change file name in requirejs main file(Config)
- Hash values not updating HOT 2
- Cache Bust generating converted files with '\' instead of '/'
- Inherited Task - double hashing the assets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-cache-bust.