• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Recent content by BenP

  1. B

    Question nginx only / add_header values are added to all files, even images

    Hi, I'm currently trying to add Content Security Policy (CSP) headers to my website. The problem: Wherever I include those settings they're added to ALL files, even images. But I only want to add them on files with the content type "text/html". I'm using Plesk in the nginx only mode. It...
  2. B

    Resolved How to set a cache control-header for html pages on nginx only

    Hi UFHH01, I just tried to set-up a new Wordpress site with exactly the same settings on the Plesk panel to post the link here (other demo pages are behind a firewall) but on the clean Wordpress install everything works fine. There seems to be an issue with Wordpress itself handling the files...
  3. B

    Resolved How to set a cache control-header for html pages on nginx only

    Hi UFHH01, luckily it's not on a productive server :D. I changed the code but still, I can't see any cache-control or expires header on the .html files. If I upload a .html file and open it in the browser, the headers appear now. But I want to set that header on all pages, which are generated...
  4. B

    Resolved How to set a cache control-header for html pages on nginx only

    Hi UFHH01, Thank you for your quick help. I'm still not yet familiar with all those commands in Ubuntu so thank you for that. I changed the code but still, I can't see any cache-control or expires header on the .html files no matter where I put the location part. I reconfigured all with...
  5. B

    Resolved How to set a cache control-header for html pages on nginx only

    Hey everybody, I have a problem with the cache-control header in combination with the front-page files of Wordpress and nginx only. As I have a project with more than 30.000 files which only get updated twice a month I'd like to set a cache-control header of 600s on all front-page files so the...
Back
Top