summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_gzip_static_module.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-28Fixed "zero size buf" alerts with subrequests.Maxim Dounin1-0/+1
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.
2023-01-24Gzip static: ranges support (ticket #2349).Maxim Dounin1-0/+2
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.
2022-05-30All known output headers can be linked lists now.Maxim Dounin1-0/+1
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.
2017-04-20Gzip static: use an appropriate error on memory allocation failure.Sergey Kandaurov1-1/+1
2017-04-12Use ngx_calloc_buf() where appropriate.Ruslan Ermilov1-1/+1
2017-03-02Added missing static specifiers.Eran Kornblau1-1/+1
2014-05-19Charset filter: fixed charset setting on encoded replies.Maxim Dounin1-2/+0
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.
2014-03-03Gzip static: fixed NGX_CONF_FLAG misuse.Valentin Bartenev1-1/+1
2012-09-10Gzip static: "always" parameter in "gzip_static" directive.Maxim Dounin1-10/+32
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.
2012-07-09Entity tags: set for static respones.Maxim Dounin1-0/+4
2012-04-26Allows particular modules to handle subrequests properly.Andrey Belov1-1/+1
2012-02-27Disable symlinks: initialization of the "disable_symlinks" field inValentin Bartenev1-3/+4
ngx_open_file_info_t moved to a separate function. This is preparation for the "from=" parameter implementation of the "disable_symlinks" directive.
2012-02-13Support for disable_symlinks in various modules.Andrey Belov1-0/+7
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2010-05-24remove r->zero_in_uriIgor Sysoev1-4/+0
2010-05-14ngx_str_set() and ngx_str_null()Igor Sysoev1-5/+3
2010-04-21do not log misleading errno in "not a regular file" errorIgor Sysoev1-1/+1
2009-11-12refactor gzip_vary handlingIgor Sysoev1-1/+2
2009-11-11nginx sent gzipped responses to clients those do not support gzip,Igor Sysoev1-1/+7
if "gzip_static on" and "gzip_vary off"; the bug had been introduced in r3136
2009-09-30read_aheadIgor Sysoev1-0/+1
2009-09-15nginx always sent "Vary: Accept-Encoding",Igor Sysoev1-3/+8
if both gzip_static and gzip_vary were on
2009-06-02return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev1-1/+1
2009-05-22add charset for ngx_http_gzip_static_module responsesIgor Sysoev1-0/+1
2009-04-27*) of.test_only to not open file if only stat() is enoughIgor Sysoev1-1/+1
*) of.failed to return exact name of failed syscall
2009-04-18remove TODO commentsIgor Sysoev1-1/+0
2009-01-16set r->root_tested for non-error_page response onlyIgor Sysoev1-1/+1
2008-09-05*) handle unaligned file part for directioIgor Sysoev1-0/+1
*) disable sendfile in directio mode
2008-07-30directioIgor Sysoev1-0/+1
2008-07-07always test root existence for access_log with variablesIgor Sysoev1-0/+2
2008-06-26ngx_memzero() ngx_open_file_info_tIgor Sysoev1-2/+2
2008-06-23initialize of.uniq in ngx_open_cached_file()Igor Sysoev1-0/+1
2008-06-20"gzip_vary on" always sends "Vary: Accept-Encoding" headerIgor Sysoev1-13/+0
2008-01-08ngx_http_gzip_static_module should DECLINE requestIgor Sysoev1-1/+1
2007-12-27optimizationIgor Sysoev1-7/+4
2007-12-27ngx_http_gzip_static_module and gzip_disableIgor Sysoev1-77/+121
2007-12-22open_file_cache_min_usesIgor Sysoev1-0/+1
2007-12-21open_file_cache_retest > open_file_cache_validIgor Sysoev1-1/+1
2007-12-07delete useless variableIgor Sysoev1-5/+2
2007-09-03open_file_cache_eventsIgor Sysoev1-0/+1
2007-09-01open_file_cache in HTTPIgor Sysoev1-116/+39
2007-08-07omit unnecessary conditionsIgor Sysoev1-1/+1
2007-08-06rename ngx_http_discard_body() to ngx_http_discard_request_body()Igor Sysoev1-1/+1
2007-01-18ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)Igor Sysoev1-1/+1
2006-10-12remove r->root_lengthIgor Sysoev1-1/+2
2006-09-14backout O_NOATIME support, it requires CAP_FOWNER capabilityIgor Sysoev1-2/+1
2006-09-01Linux O_NOATIME supportIgor Sysoev1-1/+2
2006-08-30nginx-0.4.0-RELEASE importrelease-0.4.0Igor Sysoev1-5/+5
*) Change in internal API: the HTTP modules initialization was moved from the init module phase to the HTTP postconfiguration phase. *) Change: now the request body is not read beforehand for the ngx_http_perl_module: it's required to start the reading using the $r->has_request_body method. *) Feature: the ngx_http_perl_module supports the DECLINED return code. *) Feature: the ngx_http_dav_module supports the incoming "Date" header line for the PUT method. *) Feature: the "ssi" directive is available inside the "if" block. *) Bugfix: a segmentation fault occurred if there was an "index" directive with variables and the first index name was without variables; the bug had appeared in 0.1.29.
2006-05-04nginx-0.3.44-RELEASE importrelease-0.3.44Igor Sysoev1-1/+1
*) Feature: the "wait" parameter in the "include" SSI command. *) Feature: the Ukrainian and Byelorussian characters were added to koi-win conversion table. *) Bugfix: in the SSI.
2006-04-21nginx-0.3.41-RELEASE importrelease-0.3.41Igor Sysoev1-4/+4
*) Feature: the -v switch. *) Bugfix: the segmentation fault may occurred if the SSI page has remote subrequests. *) Bugfix: in FastCGI handling. *) Bugfix: if the perl modules path was not set using --with-perl_modules_path=PATH or the "perl_modules", then the segmentation fault was occurred.
2006-01-24nginx-0.3.23-RELEASE importrelease-0.3.23Igor Sysoev1-1/+1
*) Feature: the "optimize_host_names" directive. *) Bugfix: in using of the variables in the "path" and "alias" directives. *) Bugfix: the ngx_http_perl_module was incorrectly built on Linux and Solaris.