aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_gzip_static_module.c
Commit message (Collapse)AuthorAge
* Fixed "zero size buf" alerts with subrequests.Maxim Dounin2023-01-28
| | | | | | | | | | | | | | | | | Since 4611:2b6cb7528409 responses from the gzip static, flv, and mp4 modules can be used with subrequests, though empty files were not properly handled. Empty gzipped, flv, and mp4 files thus resulted in "zero size buf in output" alerts. While valid corresponding files are not expected to be empty, such files shouldn't result in alerts. Fix is to set b->sync on such empty subrequest responses, similarly to what ngx_http_send_special() does. Additionally, the static module, the ngx_http_send_response() function, and file cache are modified to do the same instead of not sending the response body at all in such cases, since not sending the response body at all is believed to be at least questionable, and might break various filters which do not expect such behaviour.
* Gzip static: ranges support (ticket #2349).Maxim Dounin2023-01-24
| | | | | | | | | | | | | | In contrast to on-the-fly gzipping with gzip filter, static gzipped representation as returned by gzip_static is persistent, and therefore the same binary representation is available for future requests, making it possible to use range requests. Further, if a gzipped representation is re-generated with different compression settings, it is expected to result in different ETag and different size reported in the Content-Range header, making it possible to safely use range requests anyway. As such, ranges are now allowed for files returned by gzip_static.
* All known output headers can be linked lists now.Maxim Dounin2022-05-30
| | | | | | | | The h->next pointer properly provided as NULL in all cases where known output headers are added. Note that there are 3rd party modules which might not do this, and it might be risky to rely on this for arbitrary headers.
* Gzip static: use an appropriate error on memory allocation failure.Sergey Kandaurov2017-04-20
|
* Use ngx_calloc_buf() where appropriate.Ruslan Ermilov2017-04-12
|
* Added missing static specifiers.Eran Kornblau2017-03-02
|
* Charset filter: fixed charset setting on encoded replies.Maxim Dounin2014-05-19
| | | | | | | | If response is gzipped we can't recode response, but in case it's not needed we still can add charset to Content-Type. The r->ignore_content_encoding is dropped accordingly, charset with gzip_static now properly works without any special flags.
* Gzip static: fixed NGX_CONF_FLAG misuse.Valentin Bartenev2014-03-03
|
* Gzip static: "always" parameter in "gzip_static" directive.Maxim Dounin2012-09-10
| | | | | | With "always" gzip static returns gzipped content in all cases, without checking if client supports it. It is useful if there are no uncompressed files on disk anyway.
* Entity tags: set for static respones.Maxim Dounin2012-07-09
|
* Allows particular modules to handle subrequests properly.Andrey Belov2012-04-26
|
* Disable symlinks: initialization of the "disable_symlinks" field inValentin Bartenev2012-02-27
| | | | | | | ngx_open_file_info_t moved to a separate function. This is preparation for the "from=" parameter implementation of the "disable_symlinks" directive.
* Support for disable_symlinks in various modules.Andrey Belov2012-02-13
|
* Copyright updated.Maxim Konovalov2012-01-18
|
* remove r->zero_in_uriIgor Sysoev2010-05-24
|
* ngx_str_set() and ngx_str_null()Igor Sysoev2010-05-14
|
* do not log misleading errno in "not a regular file" errorIgor Sysoev2010-04-21
|
* refactor gzip_vary handlingIgor Sysoev2009-11-12
|
* nginx sent gzipped responses to clients those do not support gzip,Igor Sysoev2009-11-11
| | | | if "gzip_static on" and "gzip_vary off"; the bug had been introduced in r3136
* read_aheadIgor Sysoev2009-09-30
|
* nginx always sent "Vary: Accept-Encoding",Igor Sysoev2009-09-15
| | | | if both gzip_static and gzip_vary were on
* return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev2009-06-02
|
* add charset for ngx_http_gzip_static_module responsesIgor Sysoev2009-05-22
|
* *) of.test_only to not open file if only stat() is enoughIgor Sysoev2009-04-27
| | | | *) of.failed to return exact name of failed syscall
* remove TODO commentsIgor Sysoev2009-04-18
|
* set r->root_tested for non-error_page response onlyIgor Sysoev2009-01-16
|
* *) handle unaligned file part for directioIgor Sysoev2008-09-05
| | | | *) disable sendfile in directio mode
* directioIgor Sysoev2008-07-30
|
* always test root existence for access_log with variablesIgor Sysoev2008-07-07
|
* ngx_memzero() ngx_open_file_info_tIgor Sysoev2008-06-26
|
* initialize of.uniq in ngx_open_cached_file()Igor Sysoev2008-06-23
|
* "gzip_vary on" always sends "Vary: Accept-Encoding" headerIgor Sysoev2008-06-20
|
* ngx_http_gzip_static_module should DECLINE requestIgor Sysoev2008-01-08
|
* optimizationIgor Sysoev2007-12-27
|
* ngx_http_gzip_static_module and gzip_disableIgor Sysoev2007-12-27