Skip to content

Commit

Permalink
docs: Update .htaccess code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed May 15, 2023
1 parent 72f59fc commit 8ad2b5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ Requires a LiteSpeed Web Server or OpenLiteSpeed.
composer require acpl/flarum-lscache:"*"
```

#### You need to include this code in your `.htaccess` file:
#### You need to include this code snippet in your existing `.htaccess` file:

```apacheconf
<IfModule LiteSpeed>
CacheLookup on
RewriteEngine On
# Detection of logged-in user.
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteRule .* - [E="Cache-Vary:flarum_remember,flarum_lscache_vary,locale"]
</IfModule>
```

You can also add your own rules. For more information, visit: [https://docs.litespeedtech.com/lscache/noplugin/settings/#rewrite-rules](https://docs.litespeedtech.com/lscache/noplugin/settings/#rewrite-rules)


Expand Down

0 comments on commit 8ad2b5a

Please sign in to comment.