Giter VIP home page Giter VIP logo

asset_symlink's People

Contributors

fcheung avatar splattael avatar timfsw avatar xfbao1986 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asset_symlink's Issues

new gem version?

the current rubygems.org version is 0.1 and doesn't support rails4

Cache-control header for symlinked assets is far out

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".

Support for Rails 6

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

Rails 5 support

Hi there,
Is there any chance that version for Rails 5 will be released?
Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.