You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after apply subs_filter to js file the "Last-Modified" header removed and nginx cache config will not work always return 200 state and js file content.
who to cache subs_filtered static resource?
The text was updated successfully, but these errors were encountered:
This issue is simple. In ngx_http_subs_filter_module.c, line 270, ngx_http_clear_last_modified is called to unconditionally remove Last-Modified header.
if (r == r->main) {
ngx_http_clear_content_length(r);
ngx_http_clear_last_modified(r);
}
It is not possible to customize this behavior. While it's trivial to patch it, and pull requests are welcomed for any open source project, it looks like the project is no longer maintained. ngx_http_sub_filter_module in the mainline is NOT the same as this module, it is separately maintained, in line 271, both Last-Modified and ETag is removed.
if (!slcf->last_modified) {
ngx_http_clear_last_modified(r);
ngx_http_clear_etag(r);
} else {
ngx_http_weak_etag(r);
}
You should report the problem to the upstream, fill a feature request for keeping Last-Modified and ETag, instead of reporting bugs here.
after apply subs_filter to js file the "Last-Modified" header removed and nginx cache config will not work always return 200 state and js file content.
who to cache subs_filtered static resource?
The text was updated successfully, but these errors were encountered: