- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
It would be good if you know when this call gives updated data. If you get updated data every 30 days then cache it on dispatcher.
Below code cache xml calls for 12 hr. Add this code in vhost file.
<LocationMatch "^/content/.*\.test\.(?i:xml)$">
Header set Cache-Control "max-age=120,s-maxage=0,stale-while-revalidate=43200,stale-if-error=43200" "expr=%{REQUEST_STATUS} < 400"
Header set Age 0
</LocationMatch>