“The call to stale? will compare the If-Modified-Since header in the request with @post.updated_at. If the header is newer than the last modified, this action will return a "304 Not Modified" response. Otherwise, it will render the response and include a Last-Modified header in it.”
In this guide you will learn: What Rails provides for API-only applications How to configure Rails to start without any browser features How to decide which middleware you will want to include How ...
“The call to stale? will compare the If-Modified-Since header in the request with @post.updated_at. If the header is newer than the last modified, this action will return a "304 Not Modified" response. Otherwise, it will render the response and include a Last-Modified header in it.”
kent-where-the-light-is のブックマーク 2016/08/11 00:15
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Using Rails for API-only Applications — Ruby on Rails Guides
edgeguides.rubyonrails.org2012/03/15
In this guide you will learn: What Rails provides for API-only applications How to configure Rails to start without any browser features How to decide which middleware you will want to include How ...
28 人がブックマーク・2 件のコメント
\ コメントが サクサク読める アプリです /