README.md in seo_cache-0.8.0 vs README.md in seo_cache-0.9.0

- old
+ new

@@ -110,10 +110,16 @@ ```ruby SeoCache.force_cache_url_param = '_seo_cache_' ``` +Cache only the pages with these HTTP status code (don't cache by default not found or error pages): + +```ruby +SeoCache.cache_only_status = [<your_list>] +``` + URL extension to ignore when caching (already defined): ```ruby SeoCache.extensions_to_ignore = [<your_list>] ``` @@ -131,9 +137,18 @@ ``` Be aware, JS will be render twice: once by server rendering and once by client. For React, this not a problem but with jQuery plugins, it can duplicate elements in the page (you have to check the redundancy). Disk cache is recommended by default. Nginx will directly fetch file on disk. The TTFB (time to first byte) will be under 200ms :). You can use memory cache if you have lot of RAM. + +## Controllers + +You can check if seo mode is active in your controllers, with the following variable: + +```ruby +request.env['seo_mode'] +``` + ## Consult cache pages Too see in browser the cache page, open a browser and set the user agent to: