Compress API response

Hello people,
is there any way to compress the data that the Omeka S API provides? So that the payload size is reduced?
Thanks a lot!

Are you thinking about actual compression, like gzip or similar?

You can enable that in Apache, something like

<IfModule mod_deflate.c>
    <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE text/plain text/html text/css text/javascript application/javascript application/ld+json application/json text/xml application/xml

in the Apache config or the .htaccess. That configuration will pick up more than just the API responses, but it will include them as well. (Note, you need the deflate and filter modules for Apache enabled; most people do)

that was my thought! perfect!

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.