Apache caching javascript assets?

Not so long ago, I had problems with javascript assets. When I make changes to them, they will not take effect and the file will become invalid javascript (errors and firebug error warnings).

I noticed that my changes did not appear, and special characters were added to the end of the file. A little more digging, and I noticed that the special characters were exactly the number of characters of my rights.

Source:

$(document).ready(function(){
     alert('what');
});

Adding a line should look like this:

$(document).ready(function(){
     alert('what');
     alert("what going on?!);
});

It is displayed as follows:

$(document).ready(function(){
     alert('what');
});                          

When I researched, I found that changing the apache configuration /etc/httpd/conf/httpd.confand commenting EnableSendfile offfixes the problem.

However...

Now the problem has returned, but the Apache config has not changed.

, . - , ; .

, CentOS 6, PHP 5.3/apache 2 - : VirtualBox Apache.

, .

+5
1

, EnableSendfile On , EnableMMAP . . , CentOS Vagrant, . Windows perchance?

+7

All Articles