kpumuk / meta-tags

Search Engine Optimization (SEO) for Ruby on Rails applications.
MIT License
2.73k stars 275 forks source link

Meta-Tags does not work if I enable action-caching #208

Closed xrimpy closed 4 years ago

xrimpy commented 4 years ago

Is there a work around?

kpumuk commented 4 years ago

With action caching the whole page gets cached into an HTML file, and no code is executed during request except for before_ filters. If you want to change anything on the page (including metadata) in the response you will have to invalidate the cache.