PipelineCachedStorage fails to find hashed asset
See original GitHub issueI’m using pipeline with boostrap css, and I get the following error upon running collectstatic:
ValueError: The file 'fonts/glyphicons-halflings-regular.eot' could not be found with <pipeline.storage.PipelineCachedStorage object at 0x7fe7d8ce5d90>.
Within the collectstatic run and prior to this, I see the following:
Post-processed 'third_party/bootstrap-3.1.1-dist/fonts/glyphicons-halflings-regular.eot' as 'third_party/bootstrap-3.1.1-dist/fonts/glyphicons-halflings-regular.7ad17c6085de.eot'
It seems that perhaps pipeline isn’t referencing it’s own hashed filename?
The finders I am using are ‘pipeline.finders.CachedFileFinder’, ‘pipeline.finders.PipelineFinder’,
Note that this error doesn’t occur with PipelineStorage.
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Strange Issue When Minifying CSS via django-pipeline
The error isn't entirely related to Pipeline but rather what Django's CachedStaticFilesStorage that PipelineCachedStorage extends.
Read more >Strange Issue When Minifying CSS via django-pipeline-django
The cached storage will look for file references in your css files and replace url('asset-link') and @import 'resource-link' with the appropriate link to...
Read more >django-pipeline - PyPI
Pipeline is an asset packaging library for Django, providing both CSS and JavaScript concatenation and compression, built-in JavaScript template support, ...
Read more >Adventures in Debugging the Asset Pipeline - Cloud 66 Blog
The assets were being compiled on the server itself. However, a subset of the compiled assets on this new server had a different...
Read more >Studio Display Issue - Google Groups
After some additional digging around, I was at least able to find a few more ... Failed to load resource: the server responded...
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

Just concatenating minified code to other minified or non minified code can break, so everything is terrible.
Yes, I notice now that many minified packages cause some sort of failure, sometime only seen when running the code in a browser. Is there a way to detect and warn or fail on already minified code, or better yet warn and concatenate the code instead of trying to re-minify?