Skip to content

Commit

Permalink
hotfix: 이미지 URL 캐싱 문제로인해 임시로 query 값 추가 (#202)
Browse files Browse the repository at this point in the history
* hotfix: 이미지 URL 캐싱 문제로인해 임시로 query 값 추가

* style: spotless

* hotfix: ProfileImage timestamp Profile Get 메소드로 변경
  • Loading branch information
kdomo authored Jan 23, 2024
1 parent 78c3f67 commit 8ce7c9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/depromeet/domain/member/domain/Profile.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ private Profile(String nickname, String profileImageUrl) {
public static Profile createProfile(String nickname, String profileImageUrl) {
return Profile.builder().nickname(nickname).profileImageUrl(profileImageUrl).build();
}

// TODO: 이미지 업로드 로직 개선후 timestamp 제거
public String getProfileImageUrl() {
return profileImageUrl + "?timestamp=" + System.currentTimeMillis();
}
}

0 comments on commit 8ce7c9d

Please sign in to comment.