Compare commits

...

1 Commits

Author SHA1 Message Date
min
15f46efb62 fix(skin): cache-bust query ?v=20260614 for character-assets URLs
All checks were successful
CI / Lint (pull_request) Successful in 53s
CI / Build (pull_request) Successful in 1m31s
CI / Secret scan (pull_request) Successful in 23s
CI / PR size check (pull_request) Successful in 6s
CI / Deploy to S1 + S2 (pull_request) Has been skipped
After backend CORS rollout users had stale CORS-failure cached for
Mixamo GLB. Adding a query suffix forces browsers to re-fetch the URL
instead of replaying the cached failure.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-14 16:30:21 +03:00
2 changed files with 2 additions and 2 deletions

View File

@ -616,7 +616,7 @@ function PlayerCard({ player, isMe, isFriend, isPending, onAddFriend }) {
&& window.location.hostname === 'localhost') && window.location.hostname === 'localhost')
? 'http://localhost:3000' ? 'http://localhost:3000'
: 'https://rublox.pro'; : 'https://rublox.pro';
avatarUrl = `${base}/character-assets/skins/${player.skin}.png`; avatarUrl = `${base}/character-assets/skins/${player.skin}.png?v=20260614`;
} else { } else {
// Legacy R15: путь по старому шаблону. // Legacy R15: путь по старому шаблону.
avatarUrl = `/kubikon-assets/characters/${player.skin}/avatar.png?v=2026_05_27`; avatarUrl = `/kubikon-assets/characters/${player.skin}/avatar.png?v=2026_05_27`;

View File

@ -827,7 +827,7 @@ export class PlayerController {
? 'http://localhost:3000' ? 'http://localhost:3000'
: 'https://rublox.pro'; : 'https://rublox.pro';
return { return {
file: `${base}/character-assets/skins/${typeId}.glb`, file: `${base}/character-assets/skins/${typeId}.glb?v=20260614`,
isR15: false, isR15: false,
kind: 'non-humanoid-rigged', // Mixamo-rig, не R15 kind: 'non-humanoid-rigged', // Mixamo-rig, не R15
overrides: {}, overrides: {},