Opened 9 years ago

Closed 9 years ago

#3682 closed (worksforme)

View/Page Caching

Reported by: David Cramer <dcramer@…> Owned by: jacob
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


There is a small issue with the cache_page system.

We have urls, which are structured in the form of www-<languagecode> The page caching, doesn't know the different between any of these urls, and seems to think www-en is the same as www-de (while the content is completely different).

Change History (4)

comment:1 Changed 9 years ago by David Cramer <dcramer@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

With a bit more research (and discussion with server admins) I've learned cache_page requires vary headers, and mod_cache (lighttpd) doesn't allow vary headers (so we had them disabled).

Back to Squid I guess!

comment:2 Changed 9 years ago by Collin Grady <cgrady@…>

This is because django only sees the URL minus host, I believe.

comment:3 Changed 9 years ago by ubernostrum

Collin, actually you can use the vary_on_headers decorator with any HTTP header, including Host (which is where the domain name will be).

comment:4 Changed 9 years ago by ubernostrum

  • Resolution set to worksforme
  • Status changed from new to closed

(and closing "worksforme" since vary_on_headers(some_view, 'Host') should do exactly what this is asking for)

Note: See TracTickets for help on using tickets.
Back to Top