I am using rails fragment caching and inside the fragment there is an image file. If i do a deploy (clearing the assets) with an updated image, the image digest fingerprint will change. So until the fragment expires it will be pointing to the old image and be broken. How can I expire the fragment to get the updated image (by the way I can't run rails cache clear)?
Rails: How to Expire Fragments with stale assets
399 Views Asked by peter At
1
There are 1 best solutions below
Related Questions in RUBY-ON-RAILS
- Rails HABTM: Select everything a that a record 'has'
- Best way to make an HABTM association via console
- dynamically create an ical / ics file from a rails model
- Ruby destroy is not working? Or objects still present?
- NoMethodError: undefined method `update_average_rating' for nil:NilClass
- Select results where joined table contains records with an attribute, but without another
- Showing posts only created when boolean was true
- Ruby on rails and HAML - Print a hash with background color
- How can I monitor an endpoint's status with Ruby?
- How to create dynamic pages without form_for helper in Rails?
- Rails 4.2 jQuery loads only after refresh
- "Access Denied" - User's Permissions to S3 Bucket
- ActiveRecord, Rails 4: has_many :through with scoped conditions failure
- Rails - formatting a list of options
- Rails - Ajax do not work properly on production server
Related Questions in CACHING
- ClassCastException: datastructures.instances.JClass cannot be cast to java.util.ArrayList
- Robospice. How to save data and how to get data from DB?
- Make @lru_cache ignore some of the function arguments
- Xib taking long time (>1s) to load. UIFont cache seems to blame
- Android picasso cache images
- Rails 4 low-level caching not working
- How to cache Exchange web service API autodiscoverurl?
- The process cannot access the file because it is being used by another process asp.net
- Alamofire loading from cache even when cache policy set to ReloadIgnoringLocalAndRemoteCacheData
- Java Heap vs Cache
- In what use cases is locking on ASP.NET cache required/desirable
- Chrome cache overriding angularjs disabling of cache
- AFNetworking 2.0 Cache Issue
- Symfony ESI Cache / Surrogate Listener Issue
- Using getOrElseUpdate of TrieMap in Scala
Related Questions in FRAGMENT
- Android FragmentViewPager in Fragment
- How to remove Fragments from backstack
- Error:(24, 51) error: incompatible types: FragmentAcitvity cannot be converted to Fragment
- putSerializable in fragment
- How can I implement a delete button in a ListView and delete from database?
- (Viewpager Adapter) getSupportFragmentManager() returns NULL
- Fragment doesn't show properly in ViewPager
- Horizontal Colored ProgressBar in Android ListView
- Setting view in constructor Android with fragment
- how to avoid creating the loop with the fragment backstack
- Create a fragment in fragment at childFragmentManager
- Back Button from Fragment to an another Fragment
- android with viewpager When i click on Button in the first fragment I want the app to navigate to another activity
- Fragment created again, android?
- I can't get data from edittext in fragment after I replace fragment
Related Questions in ASSETS
- WP Super Cache to create a static version of the full site
- Rails outputting the wrong assets path
- AlassetsGroup Returning wrong number of assets
- Javascript Variables in Rails Assets
- Android - JSON array from asset and NullPointerException
- Heroku and Precompiled Assets
- Managing and loading assets via AssetManager (Libgdx)
- Laravel 5 adding invalid chars at end of JS
- .\key.p12: open failed: ENOENT (No such file or directory)
- Why is Android not seeing existing files in assets?
- Collecting un-linked assets with Webpack?
- Saving WPF Assets
- Does loadDataWithBaseUrl pick all .css and .js files from assets in order to load the page?
- iOS asset catalog for background image without cropping or stretching
- LIBGDX ios simulator crash. LibGDX / Robovm compiles for 64bit instead of 32bit. What should I do?
Related Questions in DIGEST
- AngularJS scope doesn't update until do something in ui, like click a object with a function
- what is the advantages of adopting content digest in docker?
- Digest authentication with Guzzle
- how can I keep some values in a ngshow and ng hide variable so that $digest does not initialize them again and again in angularjs?
- Rails: How to Expire Fragments with stale assets
- MessageDigest in Rust
- sprockets - precompiling a standalone asset
- hartl rails tutorial chapter 10 BCrypt::Errors::InvalidHash
- HTTP digest in javascript. md5 recalculation for new uri
- Different md5 hash results in Java and JavaScript
- Infinite loop when calling $evalAsync within a $watch function (AngularJS)
- Hmac in message vs HMac in digest
- Is the client allowed to choose challenge (nonce) in Digest HTTP authentication?
- zootool api authorization
- Message Digest Strength: Concatenation vs Iteration
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
According to the Rails Cache Guide, You can expire a fragment
You can even name your cache segment, ie
And then expire it by that name