問題タブ [syndication]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
django - django.contrib.syndication.views で Cache-Control を設定する方法
(of )を使用してdjango.contrib.syndication.viewsCache-Control
にHTTP ヘッダーを設定しようとしましたが、無駄でした:cache_control()
django.views.decorators.cache
django.contrib.syndication.views のソース コードをトレースした後、デコレータを使用して HTTP ヘッダーを HTTP 応答オブジェクトに追加する可能性は低いようです。
これを達成するための回避策はありますか?