Currently, there are 0 users and 1 guest visiting this topic.
Author
Topic
#64190

hello,

I try many security header plugin, for far this is easiest, complete security header plugin. Many of those that I try don’t work with nginx webserver, this work but… Seems that it have a problem with wp-rocket plugin.

I test it here
https://securityheaders.com/?q=https%3A%2F%2Fbga-rework-stations.com&followRedirects=on

If I clear the cash on wp-rocket first test work like a charm, all is ok, if I try to test consecutively a second, third… and so on tests don’t work. If I clear another time the cash on wp-rocket and test again… work another one fist time test and then don’t work.

Someone encounter this manifestation ?

Best regards, Marcelo

Topic Information
Bug Report
7.2
5.5
1.3
https://bga-rework-stations.com
Viewing 3 replies - 1 through 3 (of 3 total)
Author
Replies
  • #64191

    I use WP Rocket, but my server is Nginx with reverse proxy to Apache, so security headers and WP Rocket caching rules are added to .htaccess for Apache. With .htaccess, my plugin always tries to add rules to the top of .htaccess to avoid issues with WP Rocket or other similar plugins. But, with Nginx, you add rules manually and control the position.

    If anyone knows why this can happen with WP Rocket, please, reply here.

    Dev4Press - Premium plugins for WordPress.

  • #64192

    The only way is manually add the rules generated by the “GD Security Headers” plugin to “.ssl.conf” on nginx . conf file in the server section. After that I add the rules on the nginx conf I deactivate the plugin “GD Security Headers” to avoid possibles conflicts.

    The plugin “GD Security Headers” remain very useful to easy generate the rules. The result you can see here…

    https://webpagetest.org/result/200816_EC_078b4b1f3babb47a07eeba8170439cef/

    Best regards, Marcelo

  • #64194

    You should check with your hosting support to see why the headers are not server for static files (cached files are basically static files, they don’t trigger PHP loading).

    Dev4Press - Premium plugins for WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Register

If you don't have an account on this website, you can register for a free account here:

Register