0

I added the assets to git and then ran rake assets:precompile again. But now the gz files are all changed. But the plain text css and js files are not.

Why have the gz files changed?

enter image description here

New Alexandria
  • 6,951
  • 4
  • 57
  • 77
Cheng
  • 4,816
  • 4
  • 41
  • 44

1 Answers1

0

First of all you should not add the gzip files to you source control system. I will change, because every time you create a new gzip file, even if the contents are the same, the resulting file will be different, and source control systems don't know how to deal with this (and it's not supposed to do it).

You should take a look at this answer to know what files to add to gitignore.

Also you can take a look at this discussion about it in github.

Community
  • 1
  • 1
Paulo Fidalgo
  • 21,709
  • 7
  • 99
  • 115