Name Date Size #Lines LOC

..25-Jun-2020-

Makefile.incH A D30-Jan-20171.2 KiB3010

READMEH A D30-Apr-20191.4 KiB3024

ats-inliner.ccH A D30-Apr-20195.4 KiB218156

cache-handler.hH A D20-Mar-20198.8 KiB341262

cache.ccH A D30-Apr-20192.4 KiB8155

cache.hH A D30-Apr-20192.9 KiB12383

chunk-decoder.ccH A D20-Apr-20174.6 KiB178118

chunk-decoder.hH A D27-Mar-20192.2 KiB8533

fetcher.ccH A D26-Apr-20182.6 KiB8536

fetcher.hH A D30-Apr-20199.3 KiB332263

gif.hH A D04-Jul-20181.5 KiB4920

html-parser.ccH A D26-Apr-20187.3 KiB331278

html-parser.hH A D27-Mar-20192.9 KiB14696

inliner-handler.ccH A D26-Apr-20184.8 KiB151114

inliner-handler.hH A D20-Mar-20191.8 KiB7237

jpeg.hH A D04-Jul-20181.4 KiB4618

png.hH A D20-Mar-20193.4 KiB12374

ts.ccH A D30-Apr-201911.6 KiB488390

ts.hH A D27-Mar-20198.5 KiB328238

util.hH A D08-Jan-2019974 326

vconnection.hH A D30-Apr-20192.9 KiB10471

README

1ATS (Apache Traffic Server) Inliner plug-in
2-----------------------------------------------
3
4This is a global transformation plug-in that inlines base64 images on text/html responses.
5
6Inliner:
7   1. Detects the response to have header "Content-Type" set to "text/html".
8   2. Without impacting streaming, scans the mark-up looking for "src" attributes
9    into "img" tags.
10   3. For each detected http/https url, checks for a "#inline" at its end.
11   4. Checks on ATS cache if the url exists.
12   5. In case the url exists into the cache. Inliner replaces the image with a 1x1
13      base64 pixel and starts retrieving the content from the cache.
14   6. Once the image is retrieved, buffers its content into memory.
15   7. At the end of the original document, Inliner outputs a little JavaScript
16      snippet.
17   8. Inliner outputs every image found into the cache into a JavaScript function
18      call.
19   9. Once the JavaScript gets executed by the browser, the 1x1 pixels
20      are replaced by their actual content.
21  10. For the images which do not exist into the cache, Inliner preserve their
22      original url and retrieves their content into background, also converting
23      them to their base64 representation.
24
25Please use "inliner" tag for debugging purposes.
26
27Please add the inliner library into ATS plugins.conf configuration file.
28
29No special configurations are required
30