Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update static caching rewrite rules for IIS #1361

Open
duncanmcclean opened this issue Jun 7, 2024 · 0 comments
Open

Update static caching rewrite rules for IIS #1361

duncanmcclean opened this issue Jun 7, 2024 · 0 comments
Labels
help wanted Issues looking for someone to run with them! Missing Documentation

Comments

@duncanmcclean
Copy link
Member

duncanmcclean commented Jun 7, 2024

In #1334, we updated the documentation around static caching rewrite rules to workaround various edge cases with query parameters, live preview and non-GET requests.

The updated rewrite rules essentially work like this:

  • When the request is not a GET request
    • It hits Statamic / index.php to handle the request.
  • When the URL includes the live-preview query parameter
    • It hits Statamic / index.php to handle the request.
  • Otherwise...
    • When the page exists in the cache, serve from the static directory.
    • Otherwise, it hits Statamic / index.php to handle the request.

We didn't update the rewrite rules for IIS in #1334 because we don't have access to an IIS server to test updated rules on. If anyone has access to an IIS server and is able to test & contribute, that'd be great!

@duncanmcclean duncanmcclean added help wanted Issues looking for someone to run with them! Missing Documentation labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues looking for someone to run with them! Missing Documentation
Projects
None yet
Development

No branches or pull requests

1 participant