How we improved our Rails app’s performance with Conditional Get Requests
02-Jun-2022 964
HTTP provides a method of client-side caching known as Conditional Get Requests. This style of caching allows a client to cache the content of a response locally (in your browser cache or mobile device). When the client makes a subsequent request to your application for the same resource, it includes a token or timestamp from their previous request. Based on this token or timestamp, if your application determines that the response body would be the same as the last request, the server may respond with a short, head-only, 304 Not Modified response. This instructs the requesting client to fetch the response body from its local cache store instead.
How we improved our Rails app’s performance with Conditional Get Requests #ruby #rubydeveloper #rubyonrails #improved #Rails #app’s #performance #Conditional #Requests #performance https://rubyonrails.ba/link/how-we-improved-our-rails-app-s-performance-with-conditional-get-requests