Skip to content

Conversation

@kwonoh
Copy link
Collaborator

@kwonoh kwonoh commented Oct 17, 2025

Remove cache: 'no-cache' from RestConnector.

Having cache: 'no-cache' causes repeated OPTIONS requests to check CORS status unnecessarily. This increases overall response time.

Also, I believe HTTP caching rarely applies to POST anyway.

With cache: 'no-cache':
Screenshot 2025-10-15 at 15 32 54

Without setting cache option:
Screenshot 2025-10-15 at 15 31 14

Alternatively, we could add a param for fetch call in the constructor of RestConnector similar to ipc

@kwonoh kwonoh requested review from domoritz and jheer as code owners October 17, 2025 18:55
@derekperkins
Copy link
Collaborator

I've been meaning to look into why that was happening. This is great

@domoritz domoritz merged commit 94df035 into uwdata:main Oct 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants