[Suggestion] different headers for some files
See original GitHub issueHi thanks for a great plugin,
I want to know how to set different headers for different files, is this possible ?
This could work nicely if it could be extended like this:
var defaultHeaders = {};
.pipe(publisher.publish(function(filepath) {
// even better if it supported globs
if (filepath === './dist/index.html') {
return {
'Cache-Control': 'max-age=315360000, no-transform, public'
}
}
return defaultHeaders;
}))
Issue Analytics
- State:
- Created 7 years ago
- Reactions:8
- Comments:5
Top Results From Across the Web
c++ - How to include different headers from different folders?
I have a C++ project and I love mycode organized, however when I put everything in separate directories (headers and source files kept ......
Read more >Combine multiple files with one different header
I have 60+ files that I need to regularly combine into one and do a bit of formatting on. I have tried to...
Read more >Eight advanced tips for Word headers and footers
1. Display page numbers in shapes ... Most documents over a few pages display a page number in the header of footer. If...
Read more >How can I get a different header/footer on the second page?
Then type in the material for the header / footer to go on the first page. Uncheck the Different First Page checkbox and...
Read more >Feature Suggestion: personal headers - Codeforces
say... 64kb, such that every time they submit a file, the Codeforces grading system will compile/run said file with -I/my_include_directory/ (or other language ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I made this work by doing 2, with different cache file names, and then setting the index file that i want to add a different header. And in the second task only do file upload
Related to #23?