I have a js file and a gzipped version of this js file.
The problem I am facing is trying to serve the gzipped version of this js file to the browsers that support it.
I don’t know how to do that. If I add the js.gz to the current script element then it is not loaded and gives error.
How can I automatically serve the gzipped version of this js to the supported browsers.
Also I would like to restrict the gz serving the the folder /resources/widget/
I don't want to compress on the fly as i have around 1000 requests per second and it would take minutes to take down the server. Each js file is about 100KB and js.gz is about 16KB, so I would appreciate if I could be helped with my current files.
rename your files from .gz to .jgz
OR use