Skip to content

Question about url pattern matching.  #236

Closed

Description

@holymode

If I have

urls_expire_after = {
    'https://thumbnails.roblox.com/v1/users/avatar': timedelta(days=3),
}

will it also cache the result for 3d for this?
https://thumbnails.roblox.com/v1/users/avatar?userIds={user_id}&size=720x720&format=Png&isCircular=false
Or do I need to match it differently?

The example in the docs are not very clear for this. At least for me.

Activity

  1. JWCook commented on Apr 17, 2024

    @JWCook
    Member

    Yes, that URL will match.

    Patterns will match request base URLs. So it will basically treat https://thumbnails.roblox.com/v1/users/avatar the same as https://thumbnails.roblox.com/v1/users/avatar** (either the exact URL or anything starting with that).

  2. locked and limited conversation to collaborators on May 26, 2024
  3. converted this issue into a discussion #242 on May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about the project

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions