Skip to content

Commit

Permalink
only add "gzip_static" directive to nginx HDD example, if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Jul 7, 2024
1 parent e4d5104 commit 80b7d01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/setup/cachify.hdd.nginx.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
<p><?php esc_html_e( 'Please add the following lines to your nginx.conf', 'cachify' ); ?></p>

<textarea rows="16" class="large-text code cachify-code" name="code" readonly>
<?php if ( Cachify_HDD::is_gzip_enabled() ) : ?>
## GZIP
gzip_static on;

<?php endif; ?>
## CHARSET
charset utf-8;

Expand Down

0 comments on commit 80b7d01

Please sign in to comment.