A Gulp plugin for static asset revisioning by appending content hashes to filenames to enable long-term caching.
gulp-rev is a Gulp plugin that performs static asset revisioning by appending a content hash to filenames. It solves the problem of cache invalidation for static assets like CSS and JavaScript files, allowing developers to set aggressive caching headers without serving outdated content to users.
Frontend developers and build engineers using Gulp for their build processes who need to optimize static asset delivery and caching strategies.
Developers choose gulp-rev for its simplicity, reliability, and seamless integration with the Gulp ecosystem. It automates a critical performance optimization task with minimal configuration, and its content-based hashing ensures accuracy and efficiency.
Static asset revisioning by appending content hash to filenames: unicorn.css → unicorn-d41d8cd98f.css
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates unique filenames based on file content, ensuring only changed files get new hashes, which prevents unnecessary cache invalidation and improves accuracy.
Creates a JSON manifest mapping original to revisioned filenames, enabling automated updates in other parts of the build pipeline or application.
Supports custom manifest paths, merging with existing manifests, and custom transformers, allowing adaptation to diverse project structures and needs.
Works seamlessly with plugins like gulp-concat and gulp-sourcemaps, and handles streaming sources via gulp-buffer, making it a robust component in Gulp workflows.
Requires an additional plugin like gulp-buffer to handle streaming sources, adding complexity and dependencies for projects using tools like Browserify.
Only handles filename revisioning; updating references in HTML or CSS files requires separate plugins like gulp-rev-rewrite, fragmenting the workflow.
Integration with gulp-concat demands manual adjustment of cwd and path settings, as noted in the README, which can be error-prone and increase setup time.
As a Gulp plugin, it's irrelevant for projects using other build tools, and its feature-complete status means no new updates or features will be added.