symfony - Javascript cache Symfony2 -


i need datas in ajax in symphony 2.8 project. so, did script, , registered.

i use mac , vagrant.

it correctly set first time browser loads page, when modifications (and reload page), script in browser corrupted.

i mean :

console.log(1); 

will become

console.log(1);��������� 

instead of

alert(1); alert(2); 

or become

conso 

instead of

var i; 

i clear cache browser everytime, , hard reload (shift + cmd + r).

if change script name works, can't change name existed or else turns same problem.

what problem ?

i solved problem : disabled sendfile in nginx conf.


Comments