2
2
20strannik082020-07-21 17:04:31
Nginx
20strannik08, 2020-07-21 17:04:31

What are *.json files used for and can they be statically compressed on nginx?

Hello! The server has nginx + php-fpm, CMS OpenCart + one of the modules, probably for calculating delivery, stores files in the system section, * .json format. They are large (25mb each) read the contents, there are data from the regions. I don't fully understand what they are for. Can I apply static compression to them using nginx, in the same way as it is applied to css, js, font*? And does it make sense? It seems like these files are also sent to the client from the server? In places on the Internet I met a mention of this file in an example with nginx dynamic compression ... But I'm not sure exactly. In the case of static compression, I would like to delete the sources in order to save space and traffic ...

PS I apologize for the mistakes, I wrote from the phone.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2020-07-21
@20strannik08

used for data transmission.
compression can not be used, but necessary.
only not static: these files tend to change. Or even dynamically generated.
it doesn't make sense to delete them: they don't take up that much, and it won't affect traffic at all.

V
Vladimir Korotenko, 2020-07-21
@firedragon

These are Data files, it depends on the client, if the browser logs, then feel free to click. Otherwise, check with the developer, but usually all clients understand gzip

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question