summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2016-02-22 15:31:06 +0100
committerOlivier Dony <odo@openerp.com>2016-02-22 16:38:05 +0100
commitf09edcddf9ab81bf71c82e5495e989b9ad8a1101 (patch)
tree5f594e240457d3ac8ccf3c9e1354b4469b79b5f9 /addons/web/static/src/js/framework/session_instance.js
parent30cf60a659ec1801e52427481b6a673ba2c1d0ee (diff)
[FIX] assets: empty compiled assets handling
tl;dr: accept both `None` and empty ('') results as cache hits, then double-check that the file_size is really 0 A. Valid empty files When a LESS file compiles to an empty result (e.g. `variables.less`), do not treat the empty file as a cache miss. Those are valid because file_size == 0. Note: empty files are not stored in the attachment filestore and return a null (None) `datas` when read from the database. B. Invalid empty files Under some circumstances (e.g. damaged filestore, race conditions during deletion, etc.), cached compiled assets may be deleted in the underlying attachment filestore, while still present in the table. The filestore implementation returns an empty file ('') when they are later accessed. Those can be considered **invalid** because the expected file_size is > 0.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions