alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::PagesController#page_etag
Returns the etag used for response headers. If a user is logged in, we append theirs etag to prevent caching of user related content. IMPORTANT: If your user does not have a +cache_key+ method (i.e. it's not an ActiveRecord model), you have to ensure to implement it and return a unique identifier for that particular user. Otherwise all users will see the same cached page, regardless of user's state.
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/controllers/alchemy/pages_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--PagesController-page_etag-for-pr
# Commit to gitgit add app/controllers/alchemy/pages_controller.rbgit commit -m "better docs for Alchemy::PagesController#page_etag"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--PagesController-page_etag-for-pr
hub pull-request
# Celebrate!