Rails 3.2.8ãRack 1.4.1, RackCache 1.2ã«ã¦åä½ç¢ºèªã ã³ã³ããã¼ã©ã§ if request.head? render nothing: true, status: ok else # éãå¦ç end ã®ããã«ãHEADãªã¯ã¨ã¹ãã§ã¯ä½åãªå¦çãããããªããã¨ãããã¨æãã¾ãã ä¸è¨ã®ifæã¯ãdevelopmentç°å¢ã§ã¯åãã®ã§ãããproductionã§ã¯åãã¾ããã ããã©ã«ãã§å©ç¨ãããRack::Cacheã®Rack middlewareããHEADãå¼·å¼ã«GETã«æ¸ãæãããããhead?ã常æfalseãè¿ãã¦ãã¾ãã¾ãã issueã¨ãã¦è§£æ±ºæ¸ã®ããã§ããã3.2.8ã§ã¯åæ ããã¦ããªããããªã®ã§ãhead?ãåä½ããããã«ãã¦ã¿ã¾ããã 以ä¸ã®ããã«ãconfig.ruã«è¨è¼ãã¾ãã Rack::Cacheããåã«å ¥ããå¿ è¦ãããã»ã
{{#tags}}- {{label}}
{{/tags}}