emptygif
Lugha: Kiswahili

Lugha na framework zote

nginx (static file) nginx

Kipande cha nginx kwa nginx (static file) kinachojibu maombi ya /pixel.gif kwa empty GIF, ambayo husimbuliwa (decode) mara moja programu inapoanza.

nginx (static file) nginx

Faili
pixel.conf
Endesha
nginx -s reload
# Write the file once:  printf '%b' '\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\xff\xff\xff\x00\x00\x00\x21\xf9\x04\x01\x00\x00\x00\x00\x2c\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3b' > /var/www/pixel.gif
server {
    listen 8080;

    location = /pixel.gif {
        alias /var/www/pixel.gif;
        types { }
        default_type image/gif;
        add_header Cache-Control "no-store";
    }
}

Tuliendesha kipande hiki na kulinganisha baiti kilizorudisha.

Kagua

curl -sI http://localhost:8080/pixel.gif

Tovuti rasmi: nginx (static file)

Zaidi katika nginx