Ticket #1720 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

make resource links independant of the context

Reported by: ogrisel Assigned to: lregebro
Priority: P3 Milestone: CPS 3.4.3
Component: CPSSharedCalendar Version: TRUNK
Severity: major Keywords: OPTIM PERF
Cc:

Description

Many CalZope? / CPSSharedCalendar templates make links to CSS / js files dependending on the location of the viewed event / day / week ...

This makes it impossible for the client to cache these resources correctly and multiply the average number of simultaneous requests by 5 to 10 wich impact the overall performance of the application a lot.

The solution is to make them point to ${base_url}++resource++resourcename where base_url is something like context/portal_url or better request/cpsskins_base_url on CPS.

At least the following templates are affected:

action_needed_events.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
attended_events.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
attendees.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
calendar.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
day.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
event.pt:      tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
meetinghelper.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
month.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
organized_events.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"
week.pt:    tal:content="string:@import url(${context/absolute_url}/++resource++calendar.css);"

Change History

08/03/06 14:19:38 changed by ogrisel

  • status changed from new to closed.
  • resolution set to duplicate.

duplicate of 644