fcheung / asset_symlink Goto Github PK
View Code? Open in Web Editor NEWeasily make assets available under a consistent public name
License: MIT License
easily make assets available under a consistent public name
License: MIT License
the current rubygems.org version is 0.1 and doesn't support rails4
For symlinked assets the cache control header is:
cache-control: public, max-age=14400
This is the same header used for the non-symlinked asset.
I'm sure this is the intended behavior, but I can imagine that for some use cases you would want the symlinked assed to have a shorter cache expiration so that if the source JS file is changed, clients will download the new code.
Following the example in the README, if you distribute a "widget.js" asset to clients, and then push a bugfix to widget.js, CDNs & browser that already have the old asset cached will not download the code that has the bugfix.
Is there any known way around this? I can't seem to find a way to change the cache-control
header for only "symlinked assets".
Hello there @fcheung
I have been running this gem in Rails 6.0.0 without any problems for quite some time but today I found that when updating to Rails 6.0.2.1, asset_symlink seems to lock the dependency to Rails 5 (6.0.0?)
Could you expand the support to Rails 6.* ?
Thanks for this gem by the way! It solves a painful issue with the asset pipeline
Hi there,
Is there any chance that version for Rails 5 will be released?
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.