You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails generates weak ETags by default. Weak ETags allow semantically equivalent responses to have the same ETags, even if their bodies do not match exactly. This is useful when we don't want the page to be regenerated for minor changes in response body.
ETag should be the same.
Actual behavior
ETags changes even though the body is the same. It happens in both production and development mode.
System configuration
Rails version: 5.1.2
Ruby version: 2.4.1
The text was updated successfully, but these errors were encountered:
The ETag header is set by Rack::ETag, part of the Rails middleware stack by default. It computes the ETag by digesting the response body, which differs for every request because of the csrf-param meta tag.
Steps to reproduce
Expected behavior
According to the document:
ETag
should be the same.Actual behavior
ETags changes even though the body is the same. It happens in both production and development mode.
System configuration
Rails version: 5.1.2
Ruby version: 2.4.1
The text was updated successfully, but these errors were encountered: