Comments (9)
Just curious if a prefix is better than a suffix for some technical reason?
If not, I think it's marginally more readable (assuming a left-to-right reading convention) to use a suffix.
assets/application.js?v=f1aede3b6c
or assets/application.f1aede3b6c.js
from asset-pipeline.
No, there's no technical reason for this. That's just how Yeoman handles it, so I simply took over their convention.
The type of versioning (querystring or filename) could be a configuration option, but I wouldn't use querystring by default.
from asset-pipeline.
Either way, I agree this should be a feature. Good call.
from asset-pipeline.
Are you suggesting we write out files to public/assets/
i.e. public/assets/foobar.f1aede3b5c.js.coffee
on all environments?
from asset-pipeline.
No, not on all environments. Only when in production when the assets are minified and concatenated, just like Rails does by default.
It would even be better to be able to separate the vendor and the app JavaScript, i. e. public/assets/vendor.f1aede3b6c.js
and public/assets/application.5d3250e678.js
. This will prevent users to redownload all vendor assets when only a small change was made in the custom JavaScript.
from asset-pipeline.
Just wanted to chime in and point out that Assetic also provides some cache-busting features that might be worth leveraging: https://github.com/kriswallsmith/assetic#cache-busting
from asset-pipeline.
Any update?
from asset-pipeline.
Still no update guys?
from asset-pipeline.
@niallobrien, @modbase, @evantishuk please see the other issue #34 for a proposal ... I'm closing this as it all ties together in how things should be cached for performance really. I think it would be good for everyone to come to some sort of conclusion on how we expect things to be cached. There is a rudimentary system in place for caching right now but it could be enhanced in my opinion.
from asset-pipeline.
Related Issues (20)
- Please fix for Laravel 5 HOT 2
- PNG image on production is broken HOT 1
- application.css shows the mainfest file code along with the included files HOT 1
- CSS media queries without space after keyword broken
- php artisan assets:generate doesn't work well with concat. HOT 1
- Browser cache issues HOT 1
- ng-classify filter pre-processor
- CSS Minification with Keyframes
- Best Practice / Example for "thave a separate manifest file for each section" HOT 1
- Specify which path is assigned to which route.
- Require_tree unusable, @import won't cache bust
- Files still cached on a local environment HOT 1
- Requiring tree broke the combination
- Import an non-existent file with SASS write the importation line
- Laravel 5? HOT 2
- Site.scss in production taking 2.5+ seconds to load HOT 1
- @keyframe name surround by quote
- Not Found http://localhost/laravel/public/assets/application.css HOT 1
- Class not Found
- typo in repo description
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 asset-pipeline.