skip to Main Content

I am currently experiencing a serious and rare error. My website luffydecor.com, when you look at an article and press the button “click go to back” on Chrome browser,the website displays all the html code as if you pressed “ctrl + o”.
I build the website with the following features:

  • Use laravel framework Use memcached Webserver is litespeed

2

Answers


  1. Chosen as BEST ANSWER

    I fixed with this code:

     public function index(){
        $key = $this->getCacheKey();
        $models = Cache::remember($key, config('cache.time.news-categories'), function(){
            return $this->model->front()->fPost()->paginate($this->limit);
        });
        return response()->view('frontend.blog.index',['models'=>$models])->header('Content-Type','text/html; charset=UTF-8');
    }
    

  2. You should place the css code in the head of the page and not the footer. The CSS is only being loaded after all the content.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search