Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check if etag exists before to do the gsub | Rafael Mendonça França | 2012-09-15 | 1 | -2/+4 |
| | | | | This fix the build http://travis-ci.org/#!/rails/rails/builds/2459981 | ||||
* | fix the build | Steve Klabnik | 2012-09-15 | 1 | -0/+1 |
| | |||||
* | Support for multiple etags in an If-None-Match header | Travis Warlick | 2012-09-15 | 1 | -1/+7 |
| | | | | | | | | This is a rebased version of #2520. Conflicts: actionpack/test/dispatch/request_test.rb | ||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | Refactor ActionDispatch::Http::Cache::Response#cache_control_headers. | Cainã Costa | 2012-07-30 | 1 | -11/+19 |
| | |||||
* | Ensure that cache-control headers are merged | James Tucker | 2012-06-18 | 1 | -10/+32 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several aspects to this commit, that don't well fit into broken down commits, so they are detailed here: * When a user uses response.headers['Cache-Control'] = some_value, then the documented convention in ConditionalGet is not adhered to, in this case, response.cache_control is ignored due to `return if self[CACHE_CONTROL].present?` * When a middleware sets cache-control headers that would clobber, they're converted to symbols directly, without underscores. This would lead to bugs. * Items that would live in :extras if set through expires_in, are placed directly in the @cache_control hash, and not respected in many cases (somewhat adhering to the aforementioned documentation). * Although quite useless, any directive named 'extras' would be ignored. The general convention applied is that expires_* take precedence, but no longer overwrite everything and expires_* are ALWAYS applied, even if the header is set. I am still unhappy about the contents of this commit, and the code in general. Ideally it should be refactored to no longer use :extras. I'd likely recommend expanding @cache_control into a class, and giving it the power to handle the merge in a more efficient fashion. Such a commit would be a larger change that could have additional semantic changes for other libraries unless they utilize expires_in in very standard ways. | ||||
* | Merge pull request #3479 from arvida/ensure-date-header-on-expires-in | José Valim | 2012-02-18 | 1 | -0/+14 |
|\ | | | | | Ensure Date header on expires_in | ||||
| * | Added accessor methods for Date header | arvida | 2011-10-31 | 1 | -0/+14 |
| | | |||||
* | | Use freezed string constant. Some string literals is used repeatedly. | kennyj | 2011-12-08 | 1 | -15/+27 |
|/ | |||||
* | Fix previous commit by allowing a proc to be given as response_body. This is ↵ | José Valim | 2011-05-10 | 1 | -14/+12 |
| | | | | deprecated and is going to be removed in future releases. | ||||
* | removing more unused variables | Aaron Patterson | 2011-01-17 | 1 | -1/+1 |
| | |||||
* | Change def to attr_reader + alias | Krekoten' Marjan | 2010-10-18 | 1 | -10/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move ETag and ConditionalGet logic from AD::Response to the middleware stack. | José Valim | 2010-10-03 | 1 | -21/+1 |
| | |||||
* | no need to assign if we are gonna return | Xavier Noria | 2010-08-12 | 1 | -2/+2 |
| | |||||
* | ETag: use body instead of @body since the method will always return a string | Jeremy Kemper | 2010-06-28 | 1 | -2/+2 |
| | |||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+2 |
| | |||||
* | Fix a bunch of pending tests by providing an introspection mode for the ↵ | Carlhuda | 2010-02-19 | 1 | -3/+18 |
| | | | | Response object that does up-front parsing of the headers to populate things like @etag | ||||
* | Split ActionDispatch http in smaller chunks. | José Valim | 2010-01-16 | 1 | -0/+123 |