jonasll
jonasll

Reputation: 493

gzip .js files with ?ver in .htaccess

I have enabled compression in .htaccess

AddOutputFilterByType DEFLATE text/css text/html text/plain text/xml text/javascript

But I am still getting a lot of uncompressed JavaScript files with version numbers appended to the URI (?ver). Example:

/js/slides.min.jquery.js?ver=3.3.1

Any way to effectively compress these files too?

Thanks,

Upvotes: 1

Views: 815

Answers (1)

Fabrizio Calderan
Fabrizio Calderan

Reputation: 123397

try to also add application/javascriptand application/x-javascript content-type

Upvotes: 1

Related Questions