.htaccessを編集した後、DiscourseのSSO有効期限切れエラーが発生しています

Above code looks incomplete. Also, below one looks wrong.

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On 
# Default directive
ExpiresDefault "access plus 1 month"
</IfModule>

It will set max-age for 30 days for everything, it will cause terrible browser caching issue with your site. Please avoid. Rest your choice!

  • Instead of using manual .htaccess code, just use one cache plugin and it will handle all common stuffs in better way.
  • Or, implement a CDN to handle GZIP and Browser Cache which you are trying to do using above codes.