Description: | Convert response body into an RFC2397 data URL |
---|---|
Status: | Extension |
ModuleIdentifier: | data_module |
SourceFile: | mod_data.c |
Compatibility: | Available in Apache 2.3 and later |
This module provides the ability to convert a response into an RFC2397 data URL.
Data URLs can be embedded inline within web pages using something like the mod_include
module, to remove the need for clients to make separate connections to fetch what may potentially be many small images. Data URLs may also be included into pages generated by scripting languages such as PHP.
data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAw AAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFz ByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSp a/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJl ZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uis F81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PH hhx4dbgYKAAA7
The filter takes no parameters, and can be added to the filter stack using the SetOutputFilter
directive, or any of the directives supported by the mod_filter
module.
<Location "/data/images"> SetOutputFilter DATA </Location>
© 2017 The Apache Software Foundation
Licensed under the Apache License, Version 2.0.
https://httpd.apache.org/docs/2.4/en/mod/mod_data.html