| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | http-header-glue.c | 225 if (srv->mtime_cache[i].mtime == last_mod) return srv->mtime_cache[i].str; in strftime_cache_get() 228 if (srv->mtime_cache[i].mtime == 0) break; in strftime_cache_get() 235 srv->mtime_cache[i].mtime = last_mod; in strftime_cache_get() 237 tm = gmtime(&(srv->mtime_cache[i].mtime)); in strftime_cache_get() 247 int http_response_handle_cachable(server *srv, connection *con, buffer *mtime) { in http_response_handle_cachable() argument 275 if (0 == strncmp(con->request.http_if_modified_since, mtime->ptr, used_len)) { in http_response_handle_cachable() 276 if ('\0' == mtime->ptr[used_len]) con->http_status = 304; in http_response_handle_cachable() 306 strptime(mtime->ptr, "%a, %d %b %Y %H:%M:%S GMT", &tm); in http_response_handle_cachable() 335 if (0 == strncmp(con->request.http_if_modified_since, mtime->ptr, used_len)) { in http_response_handle_cachable() 336 if ('\0' == mtime->ptr[used_len]) con->http_status = 304; in http_response_handle_cachable() [all …]
|
| H A D | mod_compress.c | 277 c[4] = (mtime >> 0) & 0xff; in deflate_file_to_buffer_gzip() 278 c[5] = (mtime >> 8) & 0xff; in deflate_file_to_buffer_gzip() 279 c[6] = (mtime >> 16) & 0xff; in deflate_file_to_buffer_gzip() 280 c[7] = (mtime >> 24) & 0xff; in deflate_file_to_buffer_gzip() 725 buffer *mtime = NULL; in PHYSICALPATH_FUNC() local 837 mtime = strftime_cache_get(srv, sce->st.st_mtime); in PHYSICALPATH_FUNC() 842 if (HANDLER_FINISHED == http_response_handle_cachable(srv, con, mtime)) { in PHYSICALPATH_FUNC() 844 response_header_overwrite(srv, con, CONST_STR_LEN("Last-Modified"), CONST_BUF_LEN(mtime)); in PHYSICALPATH_FUNC() 876 if (HANDLER_FINISHED == http_response_handle_cachable(srv, con, mtime)) { in PHYSICALPATH_FUNC() 879 response_header_overwrite(srv, con, CONST_STR_LEN("Last-Modified"), CONST_BUF_LEN(mtime)); in PHYSICALPATH_FUNC() [all …]
|
| H A D | mod_staticfile.c | 361 buffer *mtime = NULL; in URIHANDLER_FUNC() local 483 mtime = strftime_cache_get(srv, sce->st.st_mtime); in URIHANDLER_FUNC() 484 response_header_overwrite(srv, con, CONST_STR_LEN("Last-Modified"), CONST_BUF_LEN(mtime)); in URIHANDLER_FUNC() 486 mtime = ds->value; in URIHANDLER_FUNC() 489 if (HANDLER_FINISHED == http_response_handle_cachable(srv, con, mtime)) { in URIHANDLER_FUNC() 511 } else if (!mtime) { in URIHANDLER_FUNC() 518 } else if (!buffer_is_equal(ds->value, mtime)) { in URIHANDLER_FUNC()
|
| H A D | mod_cml_lua.c | 310 time_t mtime = 0; in cache_parse_lua() local 378 if (sce->st.st_mtime > mtime) mtime = sce->st.st_mtime; in cache_parse_lua() 403 if ((mtime) && (NULL == ds)) { in cache_parse_lua() 405 strftime(timebuf, sizeof(timebuf), "%a, %d %b %Y %H:%M:%S GMT", gmtime(&mtime)); in cache_parse_lua()
|
| H A D | mod_dirlisting.c | 400 time_t mtime; member 769 tmp->mtime = st.st_mtime; in http_list_directory() 797 localtime_r(&(tmp->mtime), &tm); in http_list_directory() 800 strftime(datebuf, sizeof(datebuf), "%Y-%b-%d %H:%M:%S", localtime(&(tmp->mtime))); in http_list_directory() 852 localtime_r(&(tmp->mtime), &tm); in http_list_directory() 855 strftime(datebuf, sizeof(datebuf), "%Y-%b-%d %H:%M:%S", localtime(&(tmp->mtime))); in http_list_directory()
|
| H A D | response.h | 17 int http_response_handle_cachable(server *srv, connection *con, buffer * mtime);
|
| H A D | base.h | 479 time_t mtime; member 484 time_t mtime; /* the key */ member
|
| H A D | mod_ssi.c | 1086 buffer *mtime = NULL; in mod_ssi_handle_request() local 1098 mtime = strftime_cache_get(srv, lm_time); in mod_ssi_handle_request() 1099 response_header_overwrite(srv, con, CONST_STR_LEN("Last-Modified"), CONST_BUF_LEN(mtime)); in mod_ssi_handle_request()
|
| H A D | server.c | 245 srv->mtime_cache[i].mtime = (time_t)-1; in server_init()
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/tests/ |
| H A D | LightyTest.pm | 12 sub mtime { subroutine 34 if (mtime($self->{BASEDIR}.'/src/lighttpd') > mtime($self->{BASEDIR}.'/build/lighttpd')) { 36 if (mtime($self->{BASEDIR}.'/src/.libs')) {
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/doc/outdated/ |
| H A D | compress.txt | 44 find /var/www/cache -type f -mtime +10 | xargs -r rm
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/ |
| H A D | NEWS | 439 * added static-file.etags, etag.use-inode, etag.use-mtime, etag.use-size 474 * fix a crash for files with an mtime of 0 reported by cubiq on irc [1519]
|