I'm running Apache 2.4.7 on Ubuntu Server 14.04
I have a webserver running. It returns 304 modified
for images, but it doesn't return the same for json
files. I have checked the answers and comments for this post and this post, however, they don't work for me.
In my .conf
file, when I do not load mod_deflate
, the server returns a 304
response for my json
file. But when I GZIP this file, the server returns 200 OK
.
This is what I add to my apache2.conf
file:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
</IfModule>
Any workaround to enable both mod_deflate
and 304
for .json
files?
Thanks!