diff options
| author | Olivier Dony <odo@openerp.com> | 2015-08-17 16:05:15 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2015-08-17 17:01:19 +0200 |
| commit | c2cbb75319dfde57420bf38f8f057ad2f55cfcec (patch) | |
| tree | e2dc55ba7709ad4c59389d21918bb97dc935e30f /addons/analytic_user_function/analytic_user_function_view.xml | |
| parent | dd4566de37559697af68d2239429e460c16e17d1 (diff) | |
[FIX] web: _serve_attachment should not trigger redirect loops
When the Bundle mechanism caches bundle files into the
ir.attachment table, it can sometimes cache an empty
resource file (For example, if a less/saas compiled file
results in an empty CSS file) for the bundle URL.
The appropriate behavior for _serve_attachment()
when the browser loads that bundle URL is to return
an empty file (which is the correct content), instead of
redirecting again to the same URL, triggering a loop.
In addition, this commit removes the special case for
returning 204 No Content. This HTTP status code is not
really meant for GET requests - returning an empty file
with a 304 or 200 code is more appropriate and allows
for normal browser caching.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions
