[GH-ISSUE #1267] Proxyman as a caching proxy #1264

Closed
opened 2026-03-03 19:49:48 +03:00 by kerem · 4 comments
Owner

Originally created by @amorphius on GitHub (Jun 24, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1267

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman version? (Ex. Proxyman 1.4.3)

Proxyman 3.6.0

macOS Version? (Ex. mac 10.14)

mac 12.3.1

I want to use Proxyman as request/response caching proxy so it will work like this

  1. Browser sends request http://server-url.com/some/path
  2. Proxyman checks if it has caching version of this URL. It has nothing so it sends request further to the server
  3. Server responds
  4. Proxyman caches that response for the url and sends back to browser
  5. Browser sends the same request http://server-url.com/some/path
  6. Proxyman intercepts the request and checks if there is cached version. Yes, there is a cached version so request doesn't not go to the server but Proxyman returns cached response

I'm not sure how implement it even with Mock API.

Originally created by @amorphius on GitHub (Jun 24, 2022). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1267 Originally assigned to: @NghiaTranUIT on GitHub. ### Proxyman version? (Ex. Proxyman 1.4.3) Proxyman 3.6.0 ### macOS Version? (Ex. mac 10.14) mac 12.3.1 I want to use Proxyman as request/response caching proxy so it will work like this 1. Browser sends request http://server-url.com/some/path 2. Proxyman checks if it has caching version of this URL. It has nothing so it sends request further to the server 3. Server responds 4. Proxyman caches that response for the url and sends back to browser 5. Browser sends the same request http://server-url.com/some/path 6. Proxyman intercepts the request and checks if there is cached version. Yes, there is a cached version so request doesn't not go to the server but Proxyman returns cached response I'm not sure how implement it even with Mock API.
kerem 2026-03-03 19:49:48 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (Jun 28, 2022):

Unfortunately, Proxyman doesn't support this feature out of the box.

You can manually do it:

  1. Make all requests from your app that you'd need to cache
  2. Select all requests on the table view -> Right Click -> Tools -> Map Local
  3. It will create all Map Local, which is similar to the caching layer.
<!-- gh-comment-id:1168477129 --> @NghiaTranUIT commented on GitHub (Jun 28, 2022): Unfortunately, Proxyman doesn't support this feature out of the box. You can manually do it: 1. Make all requests from your app that you'd need to cache 2. Select all requests on the table view -> Right Click -> Tools -> Map Local 3. It will create all Map Local, which is similar to the caching layer.
Author
Owner

@amorphius commented on GitHub (Jun 29, 2022):

I see but in Scripting documentation is said that it's possible to implement my own Map Local feature with Scripting and it will be 100x faster. So what was implied by that statement? It's not possible as written in documentation?

<!-- gh-comment-id:1169672499 --> @amorphius commented on GitHub (Jun 29, 2022): I see but in Scripting documentation is said that it's possible to implement my own Map Local feature with Scripting and it will be 100x faster. So what was implied by that statement? It's not possible as written in documentation?
Author
Owner

@NghiaTranUIT commented on GitHub (Jun 29, 2022):

It means that you can use Scripting to write a code, which works the same as Map Local does.

Here is the Snippet code: https://docs.proxyman.io/scripting/snippet-code#map-a-local-file-to-responses-body-like-map-local-tool-proxyman-2.25.0+

<!-- gh-comment-id:1169792106 --> @NghiaTranUIT commented on GitHub (Jun 29, 2022): It means that you can use Scripting to write a code, which works the same as Map Local does. Here is the Snippet code: https://docs.proxyman.io/scripting/snippet-code#map-a-local-file-to-responses-body-like-map-local-tool-proxyman-2.25.0+
Author
Owner

@amorphius commented on GitHub (Jun 29, 2022):

OK, thanks!

<!-- gh-comment-id:1170001374 --> @amorphius commented on GitHub (Jun 29, 2022): OK, thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1264
No description provided.