Hi Rafiat,
I think there is a possibility that the problem you had could be something to do with the problem discovered in this discussion: https://moodle.org/mod/forum/discuss.php?d=330820
Something to do with Apache 'PageSpeed' - do you have this option on your server?
Thanks
Mary