Welcome! Log In Create A New Profile

Advanced

nginx http2 consistent loading of pictures

Posted by Saytik 
nginx http2 consistent loading of pictures
November 16, 2018 05:29AM
Hi.

Debian GNU/Linux 9
nginx/1.12.2
load_module modules/ngx_http_perl_module.so;
load_module modules/ngx_http_image_filter_module.so;
load_module modules/ngx_http_upload_module.so;

I have attached image. Please help me to understand, why images are loading consistently, but not parallelly.
How to force browser or nginx to download images in parallel mode from html page.

Here is my config:
================
location /media/ {
error_page 418 = @resize;
recursive_error_pages on;
if ( $arg_w ) {
return 418;
}
if ( $arg_h ) {
return 418;
}
if ( $arg_q ) {
return 418;
}

location @resize {
expires 90d;
proxy_cache resized;
proxy_cache_min_uses 1;
proxy_cache_lock on;
proxy_cache_valid 200 100d;
proxy_cache_valid any 1m;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;

proxy_set_body none;
proxy_redirect off;
proxy_pass http://127.0.0.1:8888;
proxy_set_header Host $host;

add_header X-Proxy-Cache $upstream_cache_status;
}


server {
listen 127.0.0.1:8888;
## RESIZE
location /media/ {
alias $home/media/;
## METHOD LIMIT
limit_except GET {
deny all;
}

set $w "-";
set $h "-";
set $q "85";

if ( $arg_w ) {
set $w $arg_w;
}
if ( $arg_h ) {
set $h $arg_h;
}
if ( $arg_q ) {
set $q $arg_q;
}

image_filter resize $w $h;
image_filter_jpeg_quality $q;
image_filter_buffer 20M;
image_filter_interlace on;
}
}
================
Attachments:
open | download - nginx-h2.jpg (92.8 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready