Apache caching javascript assets?
Not so long ago I was having trouble with javascript assets. When I made changes to them they wouldn't take effect and the file would become invalid javascript (firebug throwing errors and warnings). I noticed that my changes weren't appearing and special characters were being added to the end of the file. A bit more digging and I noticed that the special characters were exactly the number of characters of my edits. Original code: $(document).ready(function(){ alert('what'); }); Adding a line, should looks like this: $(document).ready(function(){ alert('what'); alert("what's going on?!); });