emptygif
Basa: Basa Jawa

Kabeh basa lan framework

nginx (empty_gif) nginx

Snippet nginx kanggo nginx (empty_gif) sing mangsuli request menyang /pixel.gif nganggo empty GIF, sing didekode sepisan nalika startup.

nginx (empty_gif) nginx

File
pixel.conf
Lakokake
nginx -s reload
# ngx_http_empty_gif_module ships with standard nginx builds. empty_gif always
# serves nginx's own built-in 43-byte transparent 1x1 GIF; its bytes can't be
# changed (to serve your own GIF, use the static-file or njs variants).
server {
    listen 8080;

    location = /pixel.gif {
        empty_gif;
        add_header Cache-Control "no-store";
    }
}

Snippet iki wis dilakokake lan byte asile wis dibandhingake.

Priksa

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

Situs resmi: nginx (empty_gif)

Liyane ing nginx